forked from cleanflight/cleanflight-configurator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
crowdin.yml
47 lines (39 loc) · 1.28 KB
/
crowdin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# See docs/developer/crowdin.md
"base_path": "locales/"
"base_url": "https://crowdin.com"
#
# Files configuration
#
"preserve_hierarchy": true
files: [
{
#
# Source files filter
# e.g. "/resources/en/*.json"
#
"type" : "chrome",
"source" : "/en/messages.json",
#
# where translations live
# e.g. "/resources/%two_letters_code%/%original_file_name%"
#
"translation" : "/%two_letters_code%/%original_file_name%",
# "preserve translations of changed strings and remove validations of those translations if they exist"
"update_option": "update_as_unapproved",
#
# Often software projects have custom names for locale directories. crowdin-cli allows you to map your own languages to be understandable by Crowdin.
#
# CF - This doesn't seem to have any effect now, it appears there's a button in the Crowdin UI instead - see https://support.crowdin.com/configuration-file/#language-mapping
# CF - A mapping is required in the UI so the '%two_letters_code%' can be used in the export settings. When there are no '%two_letters_code%' code conflicts it works.
"languages_mapping" : {
"two_letters_code" : {
"sv-SE" : "sv",
"es-ES" : "es",
"pt-PT" : "pt",
"pt-BR" : "pt_BR",
"zh-CN" : "zh_CN",
"zh-TW" : "zh_TW"
}
}
}
]