Update scripts to update translations

pull/3363/head
Chocobozzz 2020-11-25 16:52:02 +01:00
parent 832a12b0e8
commit 2245e3df8c
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 3 additions and 4 deletions

View File

@ -43,6 +43,7 @@
"angularCompilerOptions": {
"strictInjectionParameters": true,
"fullTemplateTypeCheck": true,
"strictTemplates": true
"strictTemplates": true,
"enableI18nLegacyMessageIdFormat": true
}
}

View File

@ -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