Skip to content

Commit d5b97ed

Browse files
authored
Use Localazy's langAliases for Indonesian (#4801)
1 parent 87c376c commit d5b97ed

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

tools/localazy/downloadStrings.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,6 @@ if [[ $allFiles == 1 ]]; then
3838
find . -name 'translations.xml' -exec ./tools/localazy/formatXmlResourcesFile.py {} \;
3939
fi
4040

41-
set +e
42-
echo "Moving files from values-id to values-in..."
43-
find . -type d -name 'values-id' -execdir mv {}/translations.xml {}/../values-in/translations.xml \; 2> /dev/null
44-
45-
echo "Deleting all the folders values-id..."
46-
find . -type d -name 'values-id' -exec rm -rf {} \; 2> /dev/null
47-
set -e
48-
4941
echo "Checking forbidden terms..."
5042
find . -name 'localazy.xml' -exec ./tools/localazy/checkForbiddenTerms.py {} \;
5143
if [[ $allFiles == 1 ]]; then

tools/localazy/generateLocalazyConfig.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ def convertModuleToPath(name):
6565
"excludeKeys": list(map(lambda i: "REGEX:" + i, excludeRegex)),
6666
"conditions": [
6767
"!equals: ${langAndroidResNoScript}, en | equals: ${file}, content.json"
68-
]
68+
],
69+
"langAliases": {
70+
"id": "in"
71+
}
6972
}
7073
allActions.append(actionTranslation)
7174
allRegexToExcludeFromMainModule.extend(entry["includeRegex"])
@@ -88,7 +91,10 @@ def convertModuleToPath(name):
8891
"excludeKeys": list(map(lambda i: "REGEX:" + i, allRegexToExcludeFromMainModule + regexToAlwaysExclude)),
8992
"conditions": [
9093
"!equals: ${langAndroidResNoScript}, en | equals: ${file}, content.json"
91-
]
94+
],
95+
"langAliases": {
96+
"id": "in"
97+
}
9298
}
9399
allActions.append(mainActionTranslation)
94100

0 commit comments

Comments
 (0)