Skip to content

Commit

Permalink
fix(web): consider TypeScript files for translation (#1608)
Browse files Browse the repository at this point in the history
Fix for #1604. After converting many files to TypeScript, we discovered
that those files are not considered when building the `agama.pot` file.
  • Loading branch information
imobachgs authored Sep 16, 2024
2 parents 81ac0d6 + 2484472 commit 6b4bd27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/build_pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ cd "$(dirname "$0")"

OUTPUT="${1:-agama.pot}"

find . ! -name cockpit.js ! -name '*.test.js' -name '*.js' -o ! -name '*.test.jsx' -name '*.jsx' |
find . ! -name cockpit.js ! -name '*.test.js' -name '*.js' -o ! -name '*.test.jsx' -name '*.jsx' \
-o ! -name '*.test.ts' -name '*.ts' -o ! -name '*.test.tsx' -name '*.tsx' |
grep -vE "node_modules/|dist/|coverage/" | \
xgettext --default-domain=agama --output="$OUTPUT" --language=C --files-from=- \
--keyword= --keyword=_:1 --keyword=N_:1 --keyword=n_:1,2,3t --keyword=Nn_:1,2,3t \
Expand Down
6 changes: 6 additions & 0 deletions web/package/agama-web-ui.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Sep 16 05:40:25 UTC 2024 - Imobach Gonzalez Sosa <igonzalezsosa@suse.com>

- Consider TypeScript files for translation
(gh#openSUSE/agama#1604).

-------------------------------------------------------------------
Fri Sep 6 16:38:06 UTC 2024 - Eugenio Paolantonio <eugenio.paolantonio@suse.com>

Expand Down

0 comments on commit 6b4bd27

Please sign in to comment.