aboutsummaryrefslogblamecommitdiffhomepage
path: root/scripts/i18n/pull-hook.sh
blob: cb969f83cb82eb77650ef0b749d4e99357f0335e (plain) (tree)
1
2
3
4
5
6
7






                                                                                       
#!/bin/sh

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/*