-
Notifications
You must be signed in to change notification settings - Fork 935
Expand file tree
/
Copy pathcrowdin.yml
More file actions
83 lines (80 loc) · 2.48 KB
/
crowdin.yml
File metadata and controls
83 lines (80 loc) · 2.48 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#
# Crowdin CLI configuration for Kolibri
# See https://crowdin.github.io/crowdin-cli/configuration for more information
# See https://support.crowdin.com/developer/configuration-file/ for all available options
#
#
# Your Crowdin credentials
#
"project_id": "201933"
"base_path": "."
"base_url": "https://api.crowdin.com"
#
# Defines whether to preserve the original directory structure in the Crowdin project
#
"preserve_hierarchy": false
#
# Files configuration.
# See https://support.crowdin.com/developer/configuration-file/ for all available options
# Note that this only works because of the additional language mapping in the Crowdin project settings
# This allows us to use two-letter language codes in our locale folder names
# but override with specific locale codes in Crowdin where needed
#
files: [
# CSV translation files
{
"source": "/kolibri/locale/en/LC_MESSAGES/*.csv",
"first_line_contains_header": true,
"scheme" : "identifier,source_phrase,context,translation",
"update_option": "update_as_unapproved",
"translation": "/kolibri/locale/%locale_with_underscore%/LC_MESSAGES/%original_file_name%",
"languages_mapping": &language_mapping {
"locale_with_underscore": {
# Generated mapping from crowdin_code to Django locale code
# Generated by build_tools/i18n/generate_mapping.py
"ach": "ach_UG",
"ar": "ar",
"bg": "bg_BG",
"bn": "bn_BD",
"de": "de",
"el": "el",
"en": "en",
"es-ES": "es_ES",
"fa": "fa",
"fr": "fr_FR",
"fv": "ff_CM",
"gu-IN": "gu_IN",
"ha": "ha",
"hi": "hi_IN",
"ht": "ht",
"id": "id",
"it": "it",
"ka": "ka",
"km": "km",
"ko": "ko",
"la": "es_419",
"mr": "mr",
"my": "my",
"ny": "ny",
"pa-IN": "pa",
"pt-BR": "pt_BR",
"pt-mz": "pt_MZ",
"sw-TZ": "sw_TZ",
"te": "te",
"uk": "uk",
"ur-PK": "ur_PK",
"vi": "vi",
"yo": "yo",
"zh-CN": "zh_Hans",
},
},
},
# PO translation files
{
"source": "/kolibri/locale/en/LC_MESSAGES/*.po",
"update_option": "update_as_unapproved",
"translation": "/kolibri/locale/%locale_with_underscore%/LC_MESSAGES/%original_file_name%",
"ignore": ["/kolibri/locale/en/LC_MESSAGES/*.json", "/kolibri/locale/en/LC_MESSAGES/*.mo", "/kolibri/locale/en/LC_MESSAGES/README.md"],
"languages_mapping": *language_mapping,
},
]