aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-04-07 16:12:39 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-04-07 16:16:58 +0530
commit9c735a0e6eebd41100180a7067467a9de9088484 (patch)
tree8d9b2625641efc2a3292a6055ef2fa26a9a4ebaf /Makefile
parentcd7629c916f4df5a673e0c22263628248bf1f5d2 (diff)
fix i18n build task
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6d0bacbbc..f637983eb 100644
--- a/Makefile
+++ b/Makefile
@@ -60,7 +60,12 @@ i18n: yarn-install
msgmerge -o $$pofile $$pofile src/i18n/$(poname).pot; \
done;
# generate .ts file containing all translations
- ./contrib/po2ts
+ 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
# Some commands are only available when ./configure has been run