-
Notifications
You must be signed in to change notification settings - Fork 1
/
step.yml
359 lines (351 loc) · 10.8 KB
/
step.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
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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
#
# A couple of useful guides & docs:
#
# - Main Bitrise CLI docs: https://github.com/bitrise-io/bitrise/tree/master/_docs
# - Step Development Guideline: https://github.com/bitrise-io/bitrise/blob/master/_docs/step-development-guideline.md
# - Bitrise.yml format spec: https://github.com/bitrise-io/bitrise/blob/master/_docs/bitrise-yml-format-spec.md
# - Bitrise docs: http://devcenter.bitrise.io/
# - Bitrise CLI guides: http://devcenter.bitrise.io/bitrise-cli/
title: loco
summary: Upload or download translations from Loco
description: This step can upload your new assets to Loco and download updated assets from Loco. Importing (upload) is always done before exporting (download).
website: https://github.com/3factr/bitrise-step-loco
source_code_url: https://github.com/3factr/bitrise-step-loco
support_url: https://github.com/3factr/bitrise-step-loco/issues
host_os_tags:
- osx-10.10
- ubuntu-16.04
type_tags:
- utility
is_requires_admin_user: false
is_always_run: false
is_skippable: false
run_if: ""
deps:
brew:
- name: curl
apt_get:
- name: curl
toolkit:
bash:
entry_file: step.sh
inputs:
# Inputs for both import & export
- loco_api_key:
opts:
title: Loco API key
summary: Your Loco export key if you only want to download translations, or your Loco Full access key if you want to upload new assets.
description: Your Loco export key if you only want to download translations, or your Loco Full access key if you want to upload new assets. You can get your API key under _Developer Tools > API keys_.
is_expand: true
is_required: true
is_sensitive: true
# Import input variables
- import_file_ext: csv
opts:
title: File extension
summary: File extension for the type of data you're importing. Required if you are importing assets.
category: Import
value_options:
- arb
- bplist
- csv
- ini
- json
- mo
- php
- plist
- po
- pot
- properties
- res
- resx
- strings
- tmx
- ts
- txt
- xlf
- xml
- yml
- import_file_path:
opts:
title: Path to imported translations
summary: Path to the file that has to be imported in Loco. Required if you are importing assets.
category: Import
- import_index: id
opts:
title: Index type
summary: Specify whether translations in your file are indexed by generic IDs or human-readable source text
category: Import
value_options:
- id
- text
- import_locale:
opts:
title: Locale
summary: Specify target locale if importing translations (e.g. en_US or en)
category: Import
- import_async: "false"
opts:
title: Async
summary: Specify that import should be done asynchronously (recommended for large files)
category: Import
value_options:
- "true"
- "false"
- import_source_path:
opts:
title: Path
summary: Specify original file path for source code references (excluding line number)
category: Import
- import_ignore_new: "false"
opts:
title: Ignore new
summary: Specify that new assets will **NOT** be added to the project
category: Import
value_options:
- "true"
- "false"
- import_ignore_existing: "false"
opts:
title: Ignore existing
summary: Specify that existing assets encountered in the file will NOT be updated
category: Import
value_options:
- "true"
- "false"
- import_delete_absent: "false"
opts:
title: Delete absent
summary: Permanently **DELETES** project assets NOT found in the file (use with extreme caution)
category: Import
value_options:
- "true"
- "false"
- import_tag_new:
opts:
title: Tag new
summary: Tag any NEW assets added during the import with the given tags (comma separated)
category: Import
- import_tag_all:
opts:
title: Tag all
summary: Tag ALL assets in the file with the given tags (comma separated)
category: Import
- import_untag_all:
opts:
title: Untag all
summary: Remove existing tags from any assets matched in the imported file (comma separated)
category: Import
- import_tag_updated:
opts:
title: Tag updated
summary: Tag existing assets that are MODIFIED by this import
category: Import
- untag_updated:
opts:
title: Untag updated
summary: Remove existing tags from assets that are MODIFIED during import
category: Import
- import_tag_absent:
opts:
title: Tag absent
summary: Tag existing assets in the project that are NOT found in the imported file
category: Import
- import_untag_absent:
opts:
title: Untag absent
summary: Remove existing tags from assets NOT found in the imported file
category: Import
# Export input variables
- export_file_ext: all|csv
opts:
title: File extension
summary: Target file type specified as a file extension. Required if you are exporting assets.
description: |
Target file type specified as a file extension. Required if you are exporting assets.
* The options prepended with `all` export all your locales into a single file.
* The options prepended with `archive` export all your locales into a zip file that will be extracted.
* The options prepended with `locale` export a single locale into a single file.
category: Export
value_options:
- all|json
- all|csv
- all|html
- all|sql
- all|tmx
- all|xlf
- all|yml
- archive|arb
- archive|csv
- archive|html
- archive|ini
- archive|json
- archive|mo
- archive|php
- archive|po
- archive|pot
- archive|plist
- archive|bplist
- archive|properties
- archive|res
- archive|resx
- archive|sql
- archive|strings
- archive|stringsdict
- archive|tmx
- archive|ts
- archive|txt
- archive|xlf
- archive|xliff
- archive|xml
- archive|yml
- locale|arb
- locale|csv
- locale|html
- locale|ini
- locale|json
- locale|mo
- locale|php
- locale|po
- locale|pot
- locale|plist
- locale|bplist
- locale|properties
- locale|res
- locale|resx
- locale|sql
- locale|strings
- locale|stringsdict
- locale|tmx
- locale|ts
- locale|txt
- locale|xlf
- locale|xliff
- locale|xml
- locale|yml
- export_locale:
opts:
title: Locale
summary: Locale to export, specified as short code or language tag. e.g. `en` or `en_GB`. Required and only valid if you selected an extension prepended with `locale`.
category: Export
- export_file_path:
opts:
title: File path
summary: Where the exported file should be stored. This is required when you are exporting. This should be a path to a file when you are exporting a multi-locale or a single-locale file. This should be a path to a directory when you are exporting an archive.
category: Export
- export_format: default
opts:
title: Format
summary: More specific format of file type. e.g. `rails` applies to `yml` and `symfony` applies to `php`, `xlf` & `yml`.
description: |
More specific format of file type. E.g. `rails` applies to `yml` and `symfony` applies to `php`, `xlf` & `yml`.
The default format picks the most commonly used format for the file type.
* `json` defaults to simple JSON structure
* `xml` defaults to Android string resources
* `yml` defaults to Symfony-style flat structure
* `php` defaults to Zend-style array
category: Export
value_options:
- default
- rails
- i18next
- i18next3
- symfony
- zend
- codeigniter
- constants
- chrome
- nested
- rails
- java
- tizen
- jed
- gettext
- ng-gettext
- xcode
- script
- android
- export_filter:
opts:
title: Filter
summary: Filter assets by comma-separated tag names. Match any tag with * and negate tags by prefixing with !
category: Export
- export_index: id
opts:
title: Index
summary: Override default lookup key for the file format; `id`, `text` or a custom alias
category: Export
- export_source:
opts:
title: Source
summary: Specify alternative source locale instead of project default
category: Export
- export_fallback:
opts:
title: Fallback
summary: Fallback locale for untranslated assets, specified as short code. e.g. `en` or `en_GB`
category: Export
- export_order: created
opts:
title: Order
summary: Export translations according to asset order
category: Export
value_options:
- created
- id
- export_printf: default
opts:
title: printf style
summary: Force alternative "printf" style. [See string formatting](https://localise.biz/help/developers/printf)
category: Export
value_options:
- default
- php
- java
- objc
- icu
- export_charset: UTF-8
opts:
title: Encoding
summary: Specify preferred character encoding.
category: Export
- export_breaks: Unix
opts:
title: Line-endings
summary: Force platform-specific line-endings. Default is Unix (LF) breaks.
category: Export
value_options:
- Unix
- DOS
- Mac
- export_no_comments: "false"
opts:
title: No comments
summary: Disable rendering of redundant inline comments including the Loco banner.
category: Export
value_options:
- "true"
- "false"
- export_no_folding: "false"
opts:
title: No folding
summary: Protect [dot-separated](https://localise.biz/help/developers/asset-ids#folding) keys so that `foo.bar` is not folded into object properties.
category: Export
value_options:
- "true"
- "false"
- export_namespace:
opts:
title: Namespace
summary: Override the project name for some language packs that use it as a key prefix
category: Export
- export_status:
opts:
title: Status
summary: Export translations with a specific status or flag. Negate values by prefixing with !. e.g. `translated`, or `!fuzzy`.
category: Export
- export_path:
opts:
title: Path
summary: Custom pattern for file paths. [See syntax](https://localise.biz/help/developers/locales/export-paths)
category: Export