forked from SchemaStore/schemastore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
crowdin.json
206 lines (206 loc) · 5.91 KB
/
crowdin.json
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
{
"$comment": "https://support.crowdin.com/configuration-file/",
"$schema": "http://json-schema.org/draft-04/schema",
"description": "Configuration for Crowdin, a crowd-translation platform.",
"properties": {
"project_id": {
"title": "Project ID",
"type": "string"
},
"project_id_env": {
"title": "Project ID Environment Variable",
"type": "string"
},
"api_token": {
"title": "API Token",
"type": "string"
},
"api_token_env": {
"title": "API Token Environment Variable",
"type": "string"
},
"base_path": {
"title": "Base Path",
"type": "string"
},
"base_path_env": {
"title": "Base Path Environment Variable",
"type": "string"
},
"base_url": {
"title": "Base URL",
"type": "string",
"format": "uri"
},
"base_url_env": {
"title": "Base URL Environment Variable",
"type": "string"
},
"preserve_hierarchy": {
"title": "Preserve Hierarchy",
"type": "boolean"
},
"commit_message": {
"title": "Commit Message",
"type": "string"
},
"append_commit_message": {
"title": "Append Commit Message",
"description": "Replace the default commit message with the one specified in commit_message.",
"type": "boolean"
},
"export_languages": {
"title": "Export Languages",
"description": "Specify a list of specific languages to export.",
"type": "array",
"items": {
"title": "Language",
"type": "string"
}
},
"files": {
"title": "Files",
"type": "array",
"items": {
"title": "File",
"type": "object",
"properties": {
"source": {
"title": "Source",
"type": "string"
},
"translation": {
"title": "Translation",
"type": "string"
},
"ignore": {
"title": "Ignore",
"type": "array",
"items": {
"type": "string"
}
},
"translation_replace": {
"title": "Translation Replace",
"additionalProperties": {
"type": "string"
}
},
"excluded_target_languages": {
"title": "Excluded Target Languages",
"type": "array",
"items": {
"title": "Excluded Target Language",
"type": "string"
}
},
"scheme": {
"title": "Scheme",
"type": "string"
},
"dest": {
"title": "Destination",
"type": "string"
},
"type": {
"title": "Type",
"type": "string"
},
"update_option": {
"title": "Update Option",
"enum": ["update_as_unapproved", "update_without_changes"]
},
"translate_content": {
"title": "Translate Content",
"description": "Defines whether to translate texts placed inside the tags.",
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 1
},
"translate_attributes": {
"title": "Translate Attributes",
"description": "Defines whether to translate tags' attributes.",
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 1
},
"content_segmentation": {
"title": "Content Segmentation",
"description": "Defines whether to split long texts into smaller text segments.",
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 1
},
"translatable_elements": {
"title": "Translatable Elements",
"description": "An array of strings, where each item is the XPaths to DOM element that should be imported. ",
"type": "array",
"items": {
"title": "Translatable Element",
"type": "string"
}
},
"skip_untranslated_strings": {
"title": "Skip Untranslated Strings",
"type": "boolean"
},
"skip_untranslated_files": {
"title": "Skip Untranslated Files",
"type": "boolean"
},
"export_only_approved": {
"title": "Export Only Approved",
"type": "boolean"
},
"escape_quotes": {
"title": "Escape Quotes",
"description": "Defines whether a single quote should be escaped by another single quote or backslash in exported translations.",
"type": "number",
"minimum": 0,
"maximum": 3,
"default": 3
},
"escape_special_characters": {
"title": "Escape Sepcial Characters",
"description": "Defines whether any special characters (=, :, ! and #) should be escaped by backslash in exported translations.",
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 1
},
"first_line_contains_header": {
"title": "First Line Contains Header",
"type": "boolean"
},
"languages_mapping": {
"title": "Language Mapping",
"properties": {
"two_letters_code": {
"additionalProperties": {
"type": "string"
}
},
"android_code": {
"additionalProperties": {
"type": "string"
}
}
}
},
"labels": {
"title": "Labels",
"type": "array",
"items": {
"title": "Label",
"type": "string"
}
}
}
}
}
},
"type": "object"
}