diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-24 09:35:27 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-08-24 09:35:27 +0200 |
commit | 49a56c72031802addffcaa8d6c374720d17e4d14 (patch) | |
tree | fc7738d9f42edbb6f5550951b2f8c47ee4710226 /scripts/i18n/generate.sh | |
parent | 1e7eb457eda647b4fa22a0ae8e59c0a618f662f8 (diff) | |
download | PeerTube-49a56c72031802addffcaa8d6c374720d17e4d14.tar.gz PeerTube-49a56c72031802addffcaa8d6c374720d17e4d14.tar.zst PeerTube-49a56c72031802addffcaa8d6c374720d17e4d14.zip |
Use update i18n command instead of generate
Diffstat (limited to 'scripts/i18n/generate.sh')
-rwxr-xr-x | scripts/i18n/generate.sh | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/scripts/i18n/generate.sh b/scripts/i18n/generate.sh deleted file mode 100755 index 0d1cd35c0..000000000 --- a/scripts/i18n/generate.sh +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | set -eu | ||
4 | |||
5 | npm run build -- --i18n | ||
6 | |||
7 | cd client | ||
8 | ./node_modules/.bin/localize-extract -r . -f xliff --locale "en-US" -s 'dist/en-US/*.js' -o src/locale/angular.xlf | ||
9 | |||
10 | # Workaround of https://github.com/angular/angular/issues/38437 | ||
11 | sed -i 's/other {{INTERPOLATION}/other {<x id="INTERPOLATION"\/>/g' src/locale/angular.xlf | ||
12 | |||
13 | # Merge new translations in other language files | ||
14 | npm run ng run -- PeerTube:xliffmerge | ||
15 | |||
16 | # Add our strings too | ||
17 | cd ../ | ||
18 | npm run i18n:create-custom-files | ||