]>
Commit | Line | Data |
---|---|---|
989e526a C |
1 | #!/bin/sh |
2 | ||
3 | set -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 | |
510fefb1 C |
7 | #sed -i 's/\<x id=\(.\+\?\)\/\>/<x id=\1\/>/g' client/src/locale/target/* |
8 | ||
9 | for i in 1 2 3; do | |
e945b184 C |
10 | perl -pi -e 's|<x id=(.+?)/>([^"])|<x id=\1/>\2|g' client/src/locale/target/*.xml |
11 | done | |
12 | ||
13 | npm run i18n:xliff2json |