diff --git a/tools/localazy/downloadStrings.sh b/tools/localazy/downloadStrings.sh index ffd7a2eaef6..9d855115c30 100755 --- a/tools/localazy/downloadStrings.sh +++ b/tools/localazy/downloadStrings.sh @@ -38,14 +38,6 @@ if [[ $allFiles == 1 ]]; then find . -name 'translations.xml' -exec ./tools/localazy/formatXmlResourcesFile.py {} \; fi -set +e -echo "Moving files from values-id to values-in..." -find . -type d -name 'values-id' -execdir mv {}/translations.xml {}/../values-in/translations.xml \; 2> /dev/null - -echo "Deleting all the folders values-id..." -find . -type d -name 'values-id' -exec rm -rf {} \; 2> /dev/null -set -e - echo "Checking forbidden terms..." find . -name 'localazy.xml' -exec ./tools/localazy/checkForbiddenTerms.py {} \; if [[ $allFiles == 1 ]]; then diff --git a/tools/localazy/generateLocalazyConfig.py b/tools/localazy/generateLocalazyConfig.py index bddaf6bc451..cab23b17eea 100755 --- a/tools/localazy/generateLocalazyConfig.py +++ b/tools/localazy/generateLocalazyConfig.py @@ -65,7 +65,10 @@ def convertModuleToPath(name): "excludeKeys": list(map(lambda i: "REGEX:" + i, excludeRegex)), "conditions": [ "!equals: ${langAndroidResNoScript}, en | equals: ${file}, content.json" - ] + ], + "langAliases": { + "id": "in" + } } allActions.append(actionTranslation) allRegexToExcludeFromMainModule.extend(entry["includeRegex"]) @@ -88,7 +91,10 @@ def convertModuleToPath(name): "excludeKeys": list(map(lambda i: "REGEX:" + i, allRegexToExcludeFromMainModule + regexToAlwaysExclude)), "conditions": [ "!equals: ${langAndroidResNoScript}, en | equals: ${file}, content.json" - ] + ], + "langAliases": { + "id": "in" + } } allActions.append(mainActionTranslation)