X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fi18n%2Fpull-hook.sh;h=3a83941102bee5b74045af9a753ed2d9bde0eb77;hb=337ba64efc5a54e83884f33a91de4012ed9b7d11;hp=dec426b88e98a624ac1d463dc073006b738a2bb6;hpb=e945b184a0f29b47c33bbd05578f3493ca9c8e6c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/i18n/pull-hook.sh b/scripts/i18n/pull-hook.sh index dec426b88..3a8394110 100755 --- a/scripts/i18n/pull-hook.sh +++ b/scripts/i18n/pull-hook.sh @@ -4,10 +4,10 @@ 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/*.xml done -npm run i18n:xliff2json \ No newline at end of file +npm run i18n:xliff2json +