diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-25 16:52:02 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-11-25 16:52:02 +0100 |
commit | 2245e3df8c60ec1a416cef86b63998b404a1c4b5 (patch) | |
tree | ea72b36695879b0b95f88dec7e32d2b12bc3bda2 | |
parent | 832a12b0e80b3488fcf80a8a5bceb6ba3afa1f65 (diff) | |
download | PeerTube-2245e3df8c60ec1a416cef86b63998b404a1c4b5.tar.gz PeerTube-2245e3df8c60ec1a416cef86b63998b404a1c4b5.tar.zst PeerTube-2245e3df8c60ec1a416cef86b63998b404a1c4b5.zip |
Update scripts to update translations
-rw-r--r-- | client/tsconfig.base.json | 3 | ||||
-rwxr-xr-x | 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 @@ | |||
43 | "angularCompilerOptions": { | 43 | "angularCompilerOptions": { |
44 | "strictInjectionParameters": true, | 44 | "strictInjectionParameters": true, |
45 | "fullTemplateTypeCheck": true, | 45 | "fullTemplateTypeCheck": true, |
46 | "strictTemplates": true | 46 | "strictTemplates": true, |
47 | "enableI18nLegacyMessageIdFormat": true | ||
47 | } | 48 | } |
48 | } | 49 | } |
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 | |||
4 | 4 | ||
5 | git fetch weblate && git merge weblate/develop | 5 | git fetch weblate && git merge weblate/develop |
6 | 6 | ||
7 | npm run build -- --i18n | ||
8 | |||
9 | cd client | 7 | cd client |
10 | ./node_modules/.bin/localize-extract -r . -f xliff --locale "en-US" -s 'dist/en-US/*.js' -o src/locale/angular.xlf | 8 | npm run ng -- extract-i18n --i18n-locale "en-US" --out-file src/locale/angular.xlf src/locale/angular.xlf |
11 | 9 | ||
12 | # Merge new translations in other language files | 10 | # Merge new translations in other language files |
13 | npm run ng run -- PeerTube:xliffmerge | 11 | npm run ng run -- PeerTube:xliffmerge |