[Media upload] Add media pickers to the Room screen and the composer (#380)
* Add media pickers to the Room screen and the composer. * Fix exclude rules for translations
This commit is contained in:
parent
581c5ab2d2
commit
014c0f4186
40 changed files with 438 additions and 114 deletions
|
|
@ -85,6 +85,18 @@
|
|||
"screen_room_member_list_.*",
|
||||
"screen_dm_details_.*"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": ":features:messages:impl",
|
||||
"includeRegex": [
|
||||
"screen_room_.*",
|
||||
"screen_dm_details_.*"
|
||||
],
|
||||
"excludeRegex": [
|
||||
"screen_room_details_.*",
|
||||
"screen_room_member.*",
|
||||
"screen_dm_.*"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,10 +36,13 @@ allActions = []
|
|||
# Iterating on the config
|
||||
for entry in config["modules"]:
|
||||
# Create action for the default language
|
||||
excludeRegex = regexToAlwaysExclude
|
||||
if "excludeRegex" in entry:
|
||||
excludeRegex += entry["excludeRegex"]
|
||||
action = baseAction | {
|
||||
"output": convertModuleToPath(entry["name"]) + "/src/main/res/values/localazy.xml",
|
||||
"includeKeys": list(map(lambda i: "REGEX:" + i, entry["includeRegex"])),
|
||||
"excludeKeys": list(map(lambda i: "REGEX:" + i, regexToAlwaysExclude)),
|
||||
"excludeKeys": list(map(lambda i: "REGEX:" + i, excludeRegex)),
|
||||
"conditions": [
|
||||
"equals: ${languageCode}, en"
|
||||
]
|
||||
|
|
@ -51,7 +54,7 @@ for entry in config["modules"]:
|
|||
actionTranslation = baseAction | {
|
||||
"output": convertModuleToPath(entry["name"]) + "/src/main/res/values-${langAndroidResNoScript}/translations.xml",
|
||||
"includeKeys": list(map(lambda i: "REGEX:" + i, entry["includeRegex"])),
|
||||
"excludeKeys": list(map(lambda i: "REGEX:" + i, regexToAlwaysExclude)),
|
||||
"excludeKeys": list(map(lambda i: "REGEX:" + i, excludeRegex)),
|
||||
"conditions": [
|
||||
"!equals: ${languageCode}, en"
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue