mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Merge pull request #2031 from pixlwave/doug/localazy-files
Only download content.json from Localazy.
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
Only process content.json from Localazy.
|
||||||
@@ -47,7 +47,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: ${languageCode}, en | equals: ${file}, content.json"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
# print(action)
|
# print(action)
|
||||||
@@ -59,7 +59,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: ${languageCode}, en | equals: ${file}, content.json"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
allActions.append(actionTranslation)
|
allActions.append(actionTranslation)
|
||||||
@@ -70,7 +70,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: ${languageCode}, en | equals: ${file}, content.json"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
# print(mainAction)
|
# print(mainAction)
|
||||||
@@ -82,7 +82,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: ${languageCode}, en | equals: ${file}, content.json"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
allActions.append(mainActionTranslation)
|
allActions.append(mainActionTranslation)
|
||||||
|
|||||||
Reference in New Issue
Block a user