From 24b1c65abd6fa84b2e21bc2cb87c0b3006120787 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 7 Nov 2019 14:12:57 +0100 Subject: Remove html tags --- scripts/i18n/pull-hook.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts/i18n') diff --git a/scripts/i18n/pull-hook.sh b/scripts/i18n/pull-hook.sh index 738469e38..66f3b4588 100755 --- a/scripts/i18n/pull-hook.sh +++ b/scripts/i18n/pull-hook.sh @@ -2,5 +2,11 @@ set -eu +for i in $(seq 1 10); do + # Zanata does not support inner elements in , so we hack these special elements + # This regex translate the converted elements to initial Angular elements + perl -pi -e 's|<x id=(.+?)/>([^"])|\2|g' client/src/locale/target/*.xml +done + npm run i18n:xliff2json -- cgit v1.2.3