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