From d8c8a9f3c5d218f6281b172d41549b4f60278786 Mon Sep 17 00:00:00 2001 From: Allison Karlitskaya Date: Fri, 31 May 2024 09:36:30 +0200 Subject: [PATCH] Makefile: run xgettext on typescript sources We currently only extract translations from .js and .jsx files. Make sure we also include .ts and .tsx. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0387573c1..0075ea5a6 100644 --- a/Makefile +++ b/Makefile @@ -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')