From 989e526abf0c0dd7958deb630df009608561bb67 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 31 May 2018 18:12:15 +0200 Subject: Prepare i18n files --- scripts/i18n/pull-hook.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 scripts/i18n/pull-hook.sh (limited to 'scripts/i18n/pull-hook.sh') diff --git a/scripts/i18n/pull-hook.sh b/scripts/i18n/pull-hook.sh new file mode 100755 index 000000000..cb969f83c --- /dev/null +++ b/scripts/i18n/pull-hook.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +set -eu + +# Zanata does not support inner elements in , so we hack these special elements +# This regex translate the converted elements to initial Angular elements +sed -i 's/\<x id=\([^\/]\+\?\)\/\>//g' client/src/locale/target/* \ No newline at end of file -- cgit v1.2.3