2018-05-31 12:12:15 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
cd client
|
2019-11-07 03:45:14 -05:00
|
|
|
npm run ng -- xi18n --i18n-locale "en-US" --output-path src/locale --out-file angular.xlf
|
|
|
|
npm run ngx-extractor -- --locale "en-US" -i 'src/**/*.ts' -f xlf -o src/locale/angular.xlf
|
2018-05-31 12:12:15 -04:00
|
|
|
|
2019-11-07 03:45:14 -05:00
|
|
|
# Merge new translations in other language files
|
|
|
|
npm run ng run -- PeerTube:xliffmerge
|
2018-06-06 08:23:40 -04:00
|
|
|
|
|
|
|
# Add our strings too
|
|
|
|
cd ../
|
2019-10-22 04:30:09 -04:00
|
|
|
npm run i18n:create-custom-files
|