aboutsummaryrefslogtreecommitdiff
path: root/build-system
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-03-01 13:37:21 -0300
committerSebastian <sebasjm@gmail.com>2022-03-01 13:37:21 -0300
commit454c3b5114e5e9b7742b26a665027056a817a8e2 (patch)
tree7e09297575dbe3335023624d6ff9727f779932d8 /build-system
parent36d3f508faee83c7ac8db8088db1922c993de892 (diff)
downloadwallet-core-454c3b5114e5e9b7742b26a665027056a817a8e2.tar.xz
fix #7140
Diffstat (limited to 'build-system')
-rw-r--r--build-system/Makefile23
1 files changed, 2 insertions, 21 deletions
diff --git a/build-system/Makefile b/build-system/Makefile
index bbe4bc03e..92c3fefea 100644
--- a/build-system/Makefile
+++ b/build-system/Makefile
@@ -1,10 +1,8 @@
# This Makefile has been placed in the public domain.
src = src
-poname = taler-wallet-webex
tsc = node_modules/typescript/bin/tsc
-pogen = node_modules/@gnu-taler/pogen/bin/pogen.js
typedoc = node_modules/typedoc/bin/typedoc
ava = node_modules/.bin/ava
nyc = node_modules/nyc/bin/nyc.js
@@ -60,25 +58,8 @@ integrationtests: compile
./packages/taler-integrationtests/testrunner '*'
.PHONY: i18n
-i18n: compile
- # extract translatable strings
- find $(src) \( -name '*.ts' -or -name '*.tsx' \) ! -name '*.d.ts' \
- | xargs node $(pogen) \
- | msguniq \
- | msgmerge src/i18n/poheader - \
- > src/i18n/$(poname).pot
- # merge existing translations
- @for pofile in src/i18n/*.po; do \
- echo merging $$pofile; \
- msgmerge -o $$pofile $$pofile src/i18n/$(poname).pot; \
- done;
- # generate .ts file containing all translations
- cat src/i18n/strings-prelude > src/i18n/strings.ts
- @for pofile in src/i18n/*.po; do \
- echo appending $$pofile; \
- ./contrib/po2ts $$pofile >> src/i18n/strings.ts; \
- done;
- ./node_modules/.bin/prettier --config .prettierrc --write src/i18n/strings.ts
+i18n: compile
+ pnpm run --filter @gnu-taler/taler-wallet-webextension i18n
# Some commands are only available when ./configure has been run