From 2245e3df8c60ec1a416cef86b63998b404a1c4b5 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 25 Nov 2020 16:52:02 +0100 Subject: [PATCH] Update scripts to update translations --- client/tsconfig.base.json | 3 ++- scripts/i18n/update.sh | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/client/tsconfig.base.json b/client/tsconfig.base.json index 2ce7e27e2..9f63ac11a 100644 --- a/client/tsconfig.base.json +++ b/client/tsconfig.base.json @@ -43,6 +43,7 @@ "angularCompilerOptions": { "strictInjectionParameters": true, "fullTemplateTypeCheck": true, - "strictTemplates": true + "strictTemplates": true, + "enableI18nLegacyMessageIdFormat": true } } diff --git a/scripts/i18n/update.sh b/scripts/i18n/update.sh index f42d8d38a..822344cdd 100755 --- a/scripts/i18n/update.sh +++ b/scripts/i18n/update.sh @@ -4,10 +4,8 @@ set -eu git fetch weblate && git merge weblate/develop -npm run build -- --i18n - cd client -./node_modules/.bin/localize-extract -r . -f xliff --locale "en-US" -s 'dist/en-US/*.js' -o src/locale/angular.xlf +npm run ng -- extract-i18n --i18n-locale "en-US" --out-file src/locale/angular.xlf src/locale/angular.xlf # Merge new translations in other language files npm run ng run -- PeerTube:xliffmerge