2022-12-08 13:32:36 +00:00
|
|
|
# ID used by the upload action to Crowdin
|
|
|
|
project_id_env: CROWDIN_PROJECT_ID
|
|
|
|
api_token_env: CROWDIN_PERSONAL_TOKEN
|
|
|
|
|
2022-12-01 03:43:40 +00:00
|
|
|
#
|
|
|
|
# Files configuration
|
|
|
|
#
|
2022-12-02 12:30:50 +00:00
|
|
|
"preserve_hierarchy": true
|
2022-12-01 03:43:40 +00:00
|
|
|
|
|
|
|
files: [
|
|
|
|
{
|
|
|
|
#
|
|
|
|
# Source files filter
|
|
|
|
# e.g. "/resources/en/*.json"
|
|
|
|
#
|
|
|
|
"source" : "/locales/en/messages.json",
|
|
|
|
|
|
|
|
#
|
|
|
|
# where translations live
|
|
|
|
# e.g. "/resources/%two_letters_code%/%original_file_name%"
|
|
|
|
#
|
|
|
|
"translation" : "/locales/%two_letters_code%/%original_file_name%",
|
|
|
|
|
|
|
|
#
|
|
|
|
# Often software projects have custom names for locale directories. crowdin-cli allows you to map your own languages to be understandable by Crowdin.
|
|
|
|
#
|
|
|
|
"languages_mapping" : {
|
|
|
|
"two_letters_code" : {
|
|
|
|
"pt-BR" : "pt_BR",
|
2022-12-05 21:44:09 +00:00
|
|
|
"zh-CN" : "zh_CN",
|
|
|
|
"zh-TW" : "zh_TW"
|
|
|
|
}
|
2022-12-01 03:43:40 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|