]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - scripts/i18n/update.sh
Update angular to fix localize extraction bug
[github/Chocobozzz/PeerTube.git] / scripts / i18n / update.sh
1 #!/bin/sh
2
3 set -eu
4
5 git fetch weblate && git merge weblate/develop
6
7 npm run build -- --i18n
8
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
11
12 # Merge new translations in other language files
13 npm run ng run -- PeerTube:xliffmerge
14
15 # Add our strings too
16 cd ../
17 npm run i18n:create-custom-files