]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - scripts/i18n/generate.sh
Migrate to $localize
[github/Chocobozzz/PeerTube.git] / scripts / i18n / generate.sh
CommitLineData
989e526a
C
1#!/bin/sh
2
3set -eu
4
66357162
C
5npm run build -- --i18n
6
989e526a 7cd 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
11sed -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
14npm run ng run -- PeerTube:xliffmerge
e945b184
C
15
16# Add our strings too
17cd ../
1cd4fe50 18npm run i18n:create-custom-files