diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-25 10:48:35 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-08-25 10:48:35 +0200 |
commit | ed78004086f4feec748554b26b69dcfe7b2cc9e8 (patch) | |
tree | 0e78001343381853eed7455d25b30568532790af /scripts/i18n/update.sh | |
parent | 7673c1f6a4f7d672c68b53904b391b6c87bd88f7 (diff) | |
download | PeerTube-ed78004086f4feec748554b26b69dcfe7b2cc9e8.tar.gz PeerTube-ed78004086f4feec748554b26b69dcfe7b2cc9e8.tar.zst PeerTube-ed78004086f4feec748554b26b69dcfe7b2cc9e8.zip |
Update angular to fix localize extraction bug
Diffstat (limited to 'scripts/i18n/update.sh')
-rwxr-xr-x | scripts/i18n/update.sh | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/scripts/i18n/update.sh b/scripts/i18n/update.sh index 916918f84..f42d8d38a 100755 --- a/scripts/i18n/update.sh +++ b/scripts/i18n/update.sh | |||
@@ -9,9 +9,6 @@ npm run build -- --i18n | |||
9 | cd client | 9 | cd client |
10 | ./node_modules/.bin/localize-extract -r . -f xliff --locale "en-US" -s 'dist/en-US/*.js' -o src/locale/angular.xlf | 10 | ./node_modules/.bin/localize-extract -r . -f xliff --locale "en-US" -s 'dist/en-US/*.js' -o src/locale/angular.xlf |
11 | 11 | ||
12 | # Workaround of https://github.com/angular/angular/issues/38437 | ||
13 | sed -i 's/other {{INTERPOLATION}/other {<x id="INTERPOLATION"\/>/g' src/locale/angular.xlf | ||
14 | |||
15 | # Merge new translations in other language files | 12 | # Merge new translations in other language files |
16 | npm run ng run -- PeerTube:xliffmerge | 13 | npm run ng run -- PeerTube:xliffmerge |
17 | 14 | ||