Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Update scripts to update translations

Chocobozzz2245e3df8c60
diff --git a/client/tsconfig.base.json b/client/tsconfig.base.json
index 2ce7e27e2d..9f63ac11a2 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 f42d8d38ac..822344cddb 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