Use Localazy's langAliases for Indonesian (#4801)

This commit is contained in:
Jorge Martin Espinosa 2025-06-02 12:05:55 +02:00 committed by GitHub
parent 87c376cfb6
commit d5b97ed5af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 10 deletions

View file

@ -38,14 +38,6 @@ if [[ $allFiles == 1 ]]; then
find . -name 'translations.xml' -exec ./tools/localazy/formatXmlResourcesFile.py {} \;
fi
set +e
echo "Moving files from values-id to values-in..."
find . -type d -name 'values-id' -execdir mv {}/translations.xml {}/../values-in/translations.xml \; 2> /dev/null
echo "Deleting all the folders values-id..."
find . -type d -name 'values-id' -exec rm -rf {} \; 2> /dev/null
set -e
echo "Checking forbidden terms..."
find . -name 'localazy.xml' -exec ./tools/localazy/checkForbiddenTerms.py {} \;
if [[ $allFiles == 1 ]]; then

View file

@ -65,7 +65,10 @@ for entry in config["modules"]:
"excludeKeys": list(map(lambda i: "REGEX:" + i, excludeRegex)),
"conditions": [
"!equals: ${langAndroidResNoScript}, en | equals: ${file}, content.json"
]
],
"langAliases": {
"id": "in"
}
}
allActions.append(actionTranslation)
allRegexToExcludeFromMainModule.extend(entry["includeRegex"])
@ -88,7 +91,10 @@ if allFiles:
"excludeKeys": list(map(lambda i: "REGEX:" + i, allRegexToExcludeFromMainModule + regexToAlwaysExclude)),
"conditions": [
"!equals: ${langAndroidResNoScript}, en | equals: ${file}, content.json"
]
],
"langAliases": {
"id": "in"
}
}
allActions.append(mainActionTranslation)