chore(l10n): Add Crowdin localization workflow and configuration (#1798)

This commit is contained in:
James Rich 2025-04-29 12:35:02 -05:00 committed by GitHub
parent 0f9f00843f
commit 17cd4cdc19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 73 additions and 0 deletions

View file

@ -0,0 +1,36 @@
#
# Basic Crowdin CLI configuration
# See https://crowdin.github.io/crowdin-cli/configuration for more information
# See https://support.crowdin.com/developer/configuration-file/ for all available options
#
#
# Crowdin credentials
#
"project_id_env": "CROWDIN_PROJECT_ID"
"api_token_env": "CROWDIN_PERSONAL_TOKEN"
"base_path": "."
"base_url": "https://meshtastic.crowdin.com/api/v2"
#
# Defines whether to preserve the original directory structure in the Crowdin project
# Recommended to set to true
#
"preserve_hierarchy": false
#
# Files configuration.
# See https://support.crowdin.com/developer/configuration-file/ for all available options
#
"files": [
{
"source": "/**/values/strings.xml",
"translation": "/**/values-%two_letters_code%/%original_file_name%",
"translation_replace": {
"sr-Latn": "b+sr+Latn",
},
"update_strings": true,
"cleanup_mode": true,
"escape_special_characters": 1
}
]