Makefile: run xgettext on typescript sources
We currently only extract translations from .js and .jsx files. Make sure we also include .ts and .tsx.
This commit is contained in:
parent
6e5a949f25
commit
fef1c661f0
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue