From d7f3bdf49941092002a71b995376f02d3c31c615 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Fri, 10 Jan 2025 15:54:31 +0100 Subject: [PATCH] Fix import of en-US translations. --- tools/localazy/generateLocalazyConfig.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/localazy/generateLocalazyConfig.py b/tools/localazy/generateLocalazyConfig.py index 72769b67ed..bddaf6bc45 100755 --- a/tools/localazy/generateLocalazyConfig.py +++ b/tools/localazy/generateLocalazyConfig.py @@ -52,7 +52,7 @@ for entry in config["modules"]: "includeKeys": list(map(lambda i: "REGEX:" + i, entry["includeRegex"])), "excludeKeys": list(map(lambda i: "REGEX:" + i, excludeRegex)), "conditions": [ - "equals: ${languageCode}, en | equals: ${file}, content.json" + "equals: ${langAndroidResNoScript}, en | equals: ${file}, content.json" ] } # print(action) @@ -64,7 +64,7 @@ for entry in config["modules"]: "includeKeys": list(map(lambda i: "REGEX:" + i, entry["includeRegex"])), "excludeKeys": list(map(lambda i: "REGEX:" + i, excludeRegex)), "conditions": [ - "!equals: ${languageCode}, en | equals: ${file}, content.json" + "!equals: ${langAndroidResNoScript}, en | equals: ${file}, content.json" ] } allActions.append(actionTranslation) @@ -75,7 +75,7 @@ mainAction = baseAction | { "output": "libraries/ui-strings/src/main/res/values/localazy.xml", "excludeKeys": list(map(lambda i: "REGEX:" + i, allRegexToExcludeFromMainModule + regexToAlwaysExclude)), "conditions": [ - "equals: ${languageCode}, en | equals: ${file}, content.json" + "equals: ${langAndroidResNoScript}, en | equals: ${file}, content.json" ] } # print(mainAction) @@ -87,7 +87,7 @@ if allFiles: "output": "libraries/ui-strings/src/main/res/values-${langAndroidResNoScript}/translations.xml", "excludeKeys": list(map(lambda i: "REGEX:" + i, allRegexToExcludeFromMainModule + regexToAlwaysExclude)), "conditions": [ - "!equals: ${languageCode}, en | equals: ${file}, content.json" + "!equals: ${langAndroidResNoScript}, en | equals: ${file}, content.json" ] } allActions.append(mainActionTranslation)