diff options
Diffstat (limited to 'scripts/i18n/pull-hook.sh')
-rwxr-xr-x | scripts/i18n/pull-hook.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/i18n/pull-hook.sh b/scripts/i18n/pull-hook.sh index bbe4a813e..dec426b88 100755 --- a/scripts/i18n/pull-hook.sh +++ b/scripts/i18n/pull-hook.sh | |||
@@ -7,5 +7,7 @@ set -eu | |||
7 | #sed -i 's/\<x id=\(.\+\?\)\/\>/<x id=\1\/>/g' client/src/locale/target/* | 7 | #sed -i 's/\<x id=\(.\+\?\)\/\>/<x id=\1\/>/g' client/src/locale/target/* |
8 | 8 | ||
9 | for i in 1 2 3; do | 9 | for i in 1 2 3; do |
10 | perl -pi -e 's|<x id=(.+?)/>([^"])|<x id=\1/>\2|g' client/src/locale/target/* | 10 | perl -pi -e 's|<x id=(.+?)/>([^"])|<x id=\1/>\2|g' client/src/locale/target/*.xml |
11 | done \ No newline at end of file | 11 | done |
12 | |||
13 | npm run i18n:xliff2json \ No newline at end of file | ||