]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - scripts/i18n/generate.sh
Migrate to $localize
[github/Chocobozzz/PeerTube.git] / scripts / i18n / generate.sh
... / ...
CommitLineData
1#!/bin/sh
2
3set -eu
4
5npm run build -- --i18n
6
7cd client
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
12
13# Merge new translations in other language files
14npm run ng run -- PeerTube:xliffmerge
15
16# Add our strings too
17cd ../
18npm run i18n:create-custom-files