aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/i18n/generate.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/i18n/generate.sh')
-rwxr-xr-xscripts/i18n/generate.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/i18n/generate.sh b/scripts/i18n/generate.sh
index f9c2f0613..0d1cd35c0 100755
--- a/scripts/i18n/generate.sh
+++ b/scripts/i18n/generate.sh
@@ -2,9 +2,13 @@
2 2
3set -eu 3set -eu
4 4
5npm run build -- --i18n
6
5cd client 7cd client
6npm run ng -- xi18n --i18n-locale "en-US" --output-path src/locale --out-file angular.xlf 8./node_modules/.bin/localize-extract -r . -f xliff --locale "en-US" -s 'dist/en-US/*.js' -o src/locale/angular.xlf
7npm run ngx-extractor -- --locale "en-US" -i 'src/**/*.ts' -f xlf -o src/locale/angular.xlf 9
10# Workaround of https://github.com/angular/angular/issues/38437
11sed -i 's/other {{INTERPOLATION}/other {<x id="INTERPOLATION"\/>/g' src/locale/angular.xlf
8 12
9# Merge new translations in other language files 13# Merge new translations in other language files
10npm run ng run -- PeerTube:xliffmerge 14npm run ng run -- PeerTube:xliffmerge