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.
  • Loading branch information
allisonkarlitskaya committed May 31, 2024
1 parent 19ffacf commit d8c8a9f
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 @@ -76,7 +76,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 d8c8a9f

Please sign in to comment.