summaryrefslogtreecommitdiff
path: root/build-translations.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build-translations.sh')
-rwxr-xr-xbuild-translations.sh35
1 files changed, 0 insertions, 35 deletions
diff --git a/build-translations.sh b/build-translations.sh
deleted file mode 100755
index fc72b99..0000000
--- a/build-translations.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/bash
-
-set -eu
-
-function build {
- POTGEN=node_modules/@gnu-taler/pogen/bin/pogen
- PACKAGE_NAME=$1
-
- find \( -type d -name '*.ts' -or -name '*.tsx' \) ! -name '*.d.ts' \
- | xargs node $POTGEN \
- | msguniq \
- | msgmerge src/i18n/poheader - \
- > src/i18n/$PACKAGE_NAME.pot
-
- # merge existing translations: fails when NO .po-files were found.
- for pofile in $(ls src/i18n/*.po 2> /dev/null || true); do
- echo merging $pofile;
- msgmerge -o $pofile $pofile src/i18n/$PACKAGE_NAME.pot;
- done;
-
- # generate .ts file containing all translations
- cat src/i18n/strings-prelude > src/i18n/strings.ts
- for pofile in $(ls src/i18n/*.po 2> /dev/null || true); do \
- echo appending $pofile; \
- ./contrib/po2ts $pofile >> src/i18n/strings.ts; \
- done;
-}
-
-for package in $(ls packages); do
- echo "Building $package.."
- cd packages/$package
- build package
- echo "DONE"
- cd -
-done