]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - scripts/i18n/pull-hook.sh
Merge branch 'release/beta-10' into develop
[github/Chocobozzz/PeerTube.git] / scripts / i18n / pull-hook.sh
1 #!/bin/sh
2
3 set -eu
4
5 # Zanata does not support inner elements in <source>, so we hack these special elements
6 # This regex translate the converted elements to initial Angular elements
7
8 for i in 1 2 3; do
9 perl -pi -e 's|&lt;x id=(.+?)/&gt;([^"])|<x id=\1/>\2|g' client/src/locale/target/*.xml
10 done
11
12 npm run i18n:xliff2json
13