mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-24 09:40:28 -06:00
Update scripts to update translations
This commit is contained in:
parent
832a12b0e8
commit
2245e3df8c
@ -43,6 +43,7 @@
|
||||
"angularCompilerOptions": {
|
||||
"strictInjectionParameters": true,
|
||||
"fullTemplateTypeCheck": true,
|
||||
"strictTemplates": true
|
||||
"strictTemplates": true,
|
||||
"enableI18nLegacyMessageIdFormat": true
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user