PeerTube/scripts/i18n/update.sh

18 lines
369 B
Bash
Raw Normal View History

2018-05-31 18:12:15 +02:00
#!/bin/sh
set -eu
git fetch weblate && git merge weblate/develop
npm run build -- --i18n
2018-05-31 18:12:15 +02:00
cd client
./node_modules/.bin/localize-extract -r . -f xliff --locale "en-US" -s 'dist/en-US/*.js' -o src/locale/angular.xlf
2019-11-07 09:45:14 +01:00
# Merge new translations in other language files
npm run ng run -- PeerTube:xliffmerge
2018-06-06 14:23:40 +02:00
# Add our strings too
cd ../
2019-10-22 10:30:09 +02:00
npm run i18n:create-custom-files