X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fi18n%2Fpull-hook.sh;h=3d57040cc0b6281ae19de8da558b525f4c1acc0b;hb=379acb21bcc491efdc0118ea714790bb34238d66;hp=bbe4a813eb992902e0f5244777805cb17379ee48;hpb=510fefb194aba4b365b96b150f89a9f36306560c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/i18n/pull-hook.sh b/scripts/i18n/pull-hook.sh index bbe4a813e..3d57040cc 100755 --- a/scripts/i18n/pull-hook.sh +++ b/scripts/i18n/pull-hook.sh @@ -4,8 +4,9 @@ set -eu # Zanata does not support inner elements in , so we hack these special elements # This regex translate the converted elements to initial Angular elements -#sed -i 's/\<x id=\(.\+\?\)\/\>//g' client/src/locale/target/* for i in 1 2 3; do - perl -pi -e 's|<x id=(.+?)/>([^"])|\2|g' client/src/locale/target/* -done \ No newline at end of file + perl -pi -e 's|<x id=(.+?)/>([^"])|\2|g' client/src/locale/target/*.xml +done + +npm run i18n:xliff2json \ No newline at end of file