aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/i18n/update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/i18n/update.sh')
-rwxr-xr-xscripts/i18n/update.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/i18n/update.sh b/scripts/i18n/update.sh
new file mode 100755
index 000000000..916918f84
--- /dev/null
+++ b/scripts/i18n/update.sh
@@ -0,0 +1,20 @@
1#!/bin/sh
2
3set -eu
4
5git fetch weblate && git merge weblate/develop
6
7npm run build -- --i18n
8
9cd client
10./node_modules/.bin/localize-extract -r . -f xliff --locale "en-US" -s 'dist/en-US/*.js' -o src/locale/angular.xlf
11
12# Workaround of https://github.com/angular/angular/issues/38437
13sed -i 's/other {{INTERPOLATION}/other {<x id="INTERPOLATION"\/>/g' src/locale/angular.xlf
14
15# Merge new translations in other language files
16npm run ng run -- PeerTube:xliffmerge
17
18# Add our strings too
19cd ../
20npm run i18n:create-custom-files