From b732abd92811aa826f662a94529617724314182e Mon Sep 17 00:00:00 2001 From: Estelle Comment Date: Wed, 24 Jan 2024 11:36:50 +0100 Subject: [PATCH] Add the format change in script, for real this time --- scripts/tchap/translations/collect-reference-translations.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/tchap/translations/collect-reference-translations.sh b/scripts/tchap/translations/collect-reference-translations.sh index 4178dbf29e..be1dfe5b3c 100755 --- a/scripts/tchap/translations/collect-reference-translations.sh +++ b/scripts/tchap/translations/collect-reference-translations.sh @@ -10,7 +10,8 @@ export OUTPUT_FILE=$1 # Convert tchap translations from piped format ("aa|bb|cc") to nested format. TCHAP_TRANSLATION_FILE=`realpath modules/tchap-translations/tchap_translations.json` -TCHAP_TRANSLATION_NESTED_FILE=`realpath modules/tchap-translations/tchap_translations_nested.json` +TCHAP_TRANSLATION_NESTED_FILE=`realpath modules/tchap-translations/tmp/tchap_translations_nested.json` + node scripts/tchap/translations/reformatToNested.js --file=$TCHAP_TRANSLATION_FILE > $TCHAP_TRANSLATION_NESTED_FILE # Extract EN translations from tchap translations. TCHAP_TRANSLATION_EN_FILE=`realpath modules/tchap-translations/tmp/tchap_EN.json`