]>
Commit | Line | Data |
---|---|---|
989e526a C |
1 | #!/bin/sh |
2 | ||
3 | set -eu | |
4 | ||
66357162 C |
5 | npm run build -- --i18n |
6 | ||
989e526a | 7 | cd client |
66357162 C |
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 | |
989e526a | 12 | |
3aea8eb2 C |
13 | # Merge new translations in other language files |
14 | npm run ng run -- PeerTube:xliffmerge | |
e945b184 C |
15 | |
16 | # Add our strings too | |
17 | cd ../ | |
1cd4fe50 | 18 | npm run i18n:create-custom-files |