From 3aea8eb2e7ee8fa53e05298030eaeef98d234797 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 7 Nov 2019 09:45:14 +0100 Subject: Try new worflow with french --- scripts/i18n/generate.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'scripts/i18n/generate.sh') diff --git a/scripts/i18n/generate.sh b/scripts/i18n/generate.sh index 3f3e3d8e5..f9c2f0613 100755 --- a/scripts/i18n/generate.sh +++ b/scripts/i18n/generate.sh @@ -3,12 +3,11 @@ set -eu cd client -npm run ng -- xi18n --i18n-locale "en-US" --output-path src/locale/source --out-file angular_en_US.xml -npm run ngx-extractor -- --locale "en-US" -i 'src/**/*.ts' -f xlf -o src/locale/source/angular_en_US.xml +npm run ng -- xi18n --i18n-locale "en-US" --output-path src/locale --out-file angular.xlf +npm run ngx-extractor -- --locale "en-US" -i 'src/**/*.ts' -f xlf -o src/locale/angular.xlf -# Zanata does not support inner elements in , so we hack these special elements -# This regex translate the Angular elements to special entities (that we will reconvert on pull) -perl -pi -e 's||<x id=\1/>|g' src/locale/source/angular_en_US.xml +# Merge new translations in other language files +npm run ng run -- PeerTube:xliffmerge # Add our strings too cd ../ -- cgit v1.2.3