aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/i18n/pull-hook.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/i18n/pull-hook.sh')
-rwxr-xr-xscripts/i18n/pull-hook.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/i18n/pull-hook.sh b/scripts/i18n/pull-hook.sh
index 738469e38..66f3b4588 100755
--- a/scripts/i18n/pull-hook.sh
+++ b/scripts/i18n/pull-hook.sh
@@ -2,5 +2,11 @@
2 2
3set -eu 3set -eu
4 4
5for i in $(seq 1 10); do
6 # Zanata does not support inner elements in <source>, so we hack these special elements
7 # This regex translate the converted elements to initial Angular elements
8 perl -pi -e 's|&lt;x id=(.+?)/&gt;([^"])|<x id=\1/>\2|g' client/src/locale/target/*.xml
9done
10
5npm run i18n:xliff2json 11npm run i18n:xliff2json
6 12