-
Notifications
You must be signed in to change notification settings - Fork 814
Expand file tree
/
Copy pathcrowdin.yml
More file actions
73 lines (72 loc) · 3.85 KB
/
Copy pathcrowdin.yml
File metadata and controls
73 lines (72 loc) · 3.85 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
project_id_env: CROWDIN_PROJECT_ID
api_token_env: CROWDIN_API_TOKEN
base_path: .
base_url: 'https://api.crowdin.com'
pull_request_title: '[translation] Update translation from Crowdin'
preserve_hierarchy: 1
# Every source file is named individually. Within a path node the CLI compiles `*` to `.+`, not
# `.*`, and applies it as an anchored match, so a `*` has to consume at least one character: a
# pattern of the form `strings*.xml` cannot select `strings.xml`. A file that no pattern selects
# never becomes a candidate, and the CLI says nothing about a file it never considered.
#
# %two_letters_code% rather than %android_code%: %android_code% is region-qualified for every
# language, while a resource folder carries a region only where one is needed to disambiguate.
# Using it would mean one mapping entry per language to strip the region back off, in perpetuity,
# and a language enabled later without such an entry resolves to a folder that does not exist.
# The two-letter code already agrees with the unqualified folders, so only the exceptions need an
# entry here.
#
# These overrides must also exist in the project's language settings: `translation` is uploaded
# verbatim as the file's export pattern and expanded server-side, where this mapping has no say.
# Keep the two in step.
files:
- source: /manager/src/main/res/values/strings.xml
translation: /manager/src/main/res/values-%two_letters_code%/%original_file_name%
type: android
languages_mapping: &resource_folders
two_letters_code:
'id': 'in' # Android kept the superseded ISO code
'he': 'iw' # likewise
'pt-BR': 'pt-rBR' # the unqualified code denotes the European variant
'zh-CN': 'zh-rCN'
'zh-HK': 'zh-rHK'
'zh-TW': 'zh-rTW'
# The shared manager UI library (manager-ui) owns the strings once split across the manager app;
# they were lifted here when the UI was modularised so both the Vector manager and downstream
# consumers (LSPatch) render the same, already-translated components.
- source: /manager-ui/src/main/res/values/strings_appearance.xml
translation: /manager-ui/src/main/res/values-%two_letters_code%/%original_file_name%
type: android
languages_mapping: *resource_folders
- source: /manager-ui/src/main/res/values/strings_language.xml
translation: /manager-ui/src/main/res/values-%two_letters_code%/%original_file_name%
type: android
languages_mapping: *resource_folders
- source: /manager-ui/src/main/res/values/strings_logs.xml
translation: /manager-ui/src/main/res/values-%two_letters_code%/%original_file_name%
type: android
languages_mapping: *resource_folders
- source: /manager-ui/src/main/res/values/strings_modules.xml
translation: /manager-ui/src/main/res/values-%two_letters_code%/%original_file_name%
type: android
languages_mapping: *resource_folders
- source: /manager-ui/src/main/res/values/strings_nav.xml
translation: /manager-ui/src/main/res/values-%two_letters_code%/%original_file_name%
type: android
languages_mapping: *resource_folders
- source: /manager-ui/src/main/res/values/strings_network.xml
translation: /manager-ui/src/main/res/values-%two_letters_code%/%original_file_name%
type: android
languages_mapping: *resource_folders
- source: /manager-ui/src/main/res/values/strings_store.xml
translation: /manager-ui/src/main/res/values-%two_letters_code%/%original_file_name%
type: android
languages_mapping: *resource_folders
- source: /manager-ui/src/main/res/values/strings_trace.xml
translation: /manager-ui/src/main/res/values-%two_letters_code%/%original_file_name%
type: android
languages_mapping: *resource_folders
- source: /daemon/src/main/res/values/strings.xml
translation: /daemon/src/main/res/values-%two_letters_code%/%original_file_name%
type: android
languages_mapping: *resource_folders