Skip to content

Commit

Permalink
Makefile: run xgettext on typescript sources
Browse files Browse the repository at this point in the history
We currently only extract translations from .js and .jsx files.  Make
sure we also include .ts and .tsx.

(cherry picked from commit 9eed955)
  • Loading branch information
allisonkarlitskaya authored and justin-stephenson committed May 31, 2024
1 parent b5f7fa5 commit 75bd2fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ po/$(PACKAGE_NAME).js.pot:
--keyword=gettext:1,1t --keyword=gettext:1c,2,2t \
--keyword=ngettext:1,2,3t --keyword=ngettext:1c,2,3,4t \
--keyword=gettextCatalog.getString:1,3c --keyword=gettextCatalog.getPlural:2,3,4c \
--from-code=UTF-8 $$(find src/ -name '*.js' -o -name '*.jsx')
--from-code=UTF-8 $$(find src/ -name '*.[jt]s' -o -name '*.[jt]sx')

po/$(PACKAGE_NAME).html.pot: $(NODE_MODULES_TEST) $(COCKPIT_REPO_STAMP)
pkg/lib/html2po.js -o $@ $$(find src -name '*.html')
Expand Down

0 comments on commit 75bd2fa

Please sign in to comment.