]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/i18n/pull-hook.sh
Add server localization
[github/Chocobozzz/PeerTube.git] / scripts / i18n / pull-hook.sh
index bbe4a813eb992902e0f5244777805cb17379ee48..3d57040cc0b6281ae19de8da558b525f4c1acc0b 100755 (executable)
@@ -4,8 +4,9 @@ set -eu
 
 # Zanata does not support inner elements in <source>, so we hack these special elements
 # This regex translate the converted elements to initial Angular elements
-#sed -i 's/\&lt;x id=\(.\+\?\)\/\&gt;/<x id=\1\/>/g' client/src/locale/target/*
 
 for i in 1 2 3; do
-    perl -pi -e 's|&lt;x id=(.+?)/&gt;([^"])|<x id=\1/>\2|g' client/src/locale/target/*
-done
\ No newline at end of file
+    perl -pi -e 's|&lt;x id=(.+?)/&gt;([^"])|<x id=\1/>\2|g' client/src/locale/target/*.xml
+done
+
+npm run i18n:xliff2json
\ No newline at end of file