Merge pull request #4135 from element-hq/feature/bma/en-us
Fix import of en-US translations.
This commit is contained in:
commit
bcec2ef3ef
1 changed files with 4 additions and 4 deletions
|
|
@ -52,7 +52,7 @@ for entry in config["modules"]:
|
||||||
"includeKeys": list(map(lambda i: "REGEX:" + i, entry["includeRegex"])),
|
"includeKeys": list(map(lambda i: "REGEX:" + i, entry["includeRegex"])),
|
||||||
"excludeKeys": list(map(lambda i: "REGEX:" + i, excludeRegex)),
|
"excludeKeys": list(map(lambda i: "REGEX:" + i, excludeRegex)),
|
||||||
"conditions": [
|
"conditions": [
|
||||||
"equals: ${languageCode}, en | equals: ${file}, content.json"
|
"equals: ${langAndroidResNoScript}, en | equals: ${file}, content.json"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
# print(action)
|
# print(action)
|
||||||
|
|
@ -64,7 +64,7 @@ for entry in config["modules"]:
|
||||||
"includeKeys": list(map(lambda i: "REGEX:" + i, entry["includeRegex"])),
|
"includeKeys": list(map(lambda i: "REGEX:" + i, entry["includeRegex"])),
|
||||||
"excludeKeys": list(map(lambda i: "REGEX:" + i, excludeRegex)),
|
"excludeKeys": list(map(lambda i: "REGEX:" + i, excludeRegex)),
|
||||||
"conditions": [
|
"conditions": [
|
||||||
"!equals: ${languageCode}, en | equals: ${file}, content.json"
|
"!equals: ${langAndroidResNoScript}, en | equals: ${file}, content.json"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
allActions.append(actionTranslation)
|
allActions.append(actionTranslation)
|
||||||
|
|
@ -75,7 +75,7 @@ mainAction = baseAction | {
|
||||||
"output": "libraries/ui-strings/src/main/res/values/localazy.xml",
|
"output": "libraries/ui-strings/src/main/res/values/localazy.xml",
|
||||||
"excludeKeys": list(map(lambda i: "REGEX:" + i, allRegexToExcludeFromMainModule + regexToAlwaysExclude)),
|
"excludeKeys": list(map(lambda i: "REGEX:" + i, allRegexToExcludeFromMainModule + regexToAlwaysExclude)),
|
||||||
"conditions": [
|
"conditions": [
|
||||||
"equals: ${languageCode}, en | equals: ${file}, content.json"
|
"equals: ${langAndroidResNoScript}, en | equals: ${file}, content.json"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
# print(mainAction)
|
# print(mainAction)
|
||||||
|
|
@ -87,7 +87,7 @@ if allFiles:
|
||||||
"output": "libraries/ui-strings/src/main/res/values-${langAndroidResNoScript}/translations.xml",
|
"output": "libraries/ui-strings/src/main/res/values-${langAndroidResNoScript}/translations.xml",
|
||||||
"excludeKeys": list(map(lambda i: "REGEX:" + i, allRegexToExcludeFromMainModule + regexToAlwaysExclude)),
|
"excludeKeys": list(map(lambda i: "REGEX:" + i, allRegexToExcludeFromMainModule + regexToAlwaysExclude)),
|
||||||
"conditions": [
|
"conditions": [
|
||||||
"!equals: ${languageCode}, en | equals: ${file}, content.json"
|
"!equals: ${langAndroidResNoScript}, en | equals: ${file}, content.json"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
allActions.append(mainActionTranslation)
|
allActions.append(mainActionTranslation)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue