]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - scripts/i18n/pull-hook.sh
Prepare i18n files
[github/Chocobozzz/PeerTube.git] / scripts / i18n / pull-hook.sh
CommitLineData
989e526a
C
1#!/bin/sh
2
3set -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
7sed -i 's/\&lt;x id=\([^\/]\+\?\)\/\&gt;/<x id=\1\/>/g' client/src/locale/target/*