Skip to content

Commit

Permalink
Merge pull request #4135 from element-hq/feature/bma/en-us
Browse files Browse the repository at this point in the history
Fix import of en-US translations.
  • Loading branch information
ganfra authored Jan 10, 2025
2 parents 63dbf93 + f92ffbe commit bcec2ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/localazy/generateLocalazyConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def convertModuleToPath(name):
"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)
Expand All @@ -64,7 +64,7 @@ def convertModuleToPath(name):
"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)
Expand All @@ -75,7 +75,7 @@ def convertModuleToPath(name):
"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)
Expand All @@ -87,7 +87,7 @@ def convertModuleToPath(name):
"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)
Expand Down

0 comments on commit bcec2ef

Please sign in to comment.