1
0
Fork 0
peertube/scripts/i18n/generate.sh

19 lines
477 B
Bash
Raw Normal View History

2018-05-31 16:12:15 +00:00
#!/bin/sh
set -eu
npm run build -- --i18n
2018-05-31 16:12:15 +00:00
cd client
./node_modules/.bin/localize-extract -r . -f xliff --locale "en-US" -s 'dist/en-US/*.js' -o src/locale/angular.xlf
# Workaround of https://github.com/angular/angular/issues/38437
sed -i 's/other {{INTERPOLATION}/other {<x id="INTERPOLATION"\/>/g' src/locale/angular.xlf
2018-05-31 16:12:15 +00:00
2019-11-07 08:45:14 +00:00
# Merge new translations in other language files
npm run ng run -- PeerTube:xliffmerge
2018-06-06 12:23:40 +00:00
# Add our strings too
cd ../
2019-10-22 08:30:09 +00:00
npm run i18n:create-custom-files