-
Notifications
You must be signed in to change notification settings - Fork 0
/
localazy.json
1164 lines (1164 loc) · 49.5 KB
/
localazy.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
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
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://raw.githubusercontent.com/localazy/cli-schema/master/localazy.json",
"type": "object",
"default": {},
"title": "Localazy CLI schema",
"description": "Schema definition for Localazy CLI configuration file.",
"required": [],
"additionalProperties": false,
"properties": {
"$schema": {
"$id": "#/properties/",
"type": "string",
"default": "https://raw.githubusercontent.com/localazy/cli-schema/master/localazy.json",
"description": "Schema definition for Localazy CLI configuration file.",
"title": "Schema"
},
"writeKey": {
"$id": "#/properties/writeKey",
"type": "string",
"description": "Your project's write key. It can be found in Settings -> Access keys.",
"title": "Write key"
},
"readKey": {
"$id": "#/properties/readKey",
"type": "string",
"description": "Your project's read key. It can be found in Settings -> Access keys.",
"title": "Read key"
},
"branch": {
"$id": "#/properties/branch",
"type": "string",
"description": "The branch to perform the operation on. If not specified, the operation is performed on the project corresponding to write/read key.",
"title": "Branch"
},
"community": {
"$id": "#/properties/community",
"type": "object",
"description": "Define community settings for sharing your configuration with other users. https://localazy.com/docs/cli/community-sharing",
"title": "Community",
"properties": {
"author": {
"$id": "#/properties/community/author",
"type": "string",
"description": "The name of the author of the script.",
"title": "Author"
},
"email": {
"$id": "#/properties/community/email",
"type": "string",
"description": "The email of the author of the script. It's not available publicly.",
"title": "Email"
},
"company": {
"$id": "#/properties/community/company",
"type": "string",
"description": "Company name if applicable.",
"title": "Author"
},
"website": {
"$id": "#/properties/community/website",
"type": "string",
"description": "Website name if applicable.",
"title": "Website"
},
"tags": {
"$id": "#/properties/community/tags",
"type": "array",
"description": "A set of tags to help other users find your script. Please tag your technology stack, framework, library, programming language, etc.",
"title": "Tags",
"items": {
"type": "string"
}
},
"description": {
"$id": "#/properties/community/description",
"type": "string",
"description": "The description of the script. Please describe what the script does and how it works.",
"title": "Description"
}
},
"additionalProperties": false,
"patternProperties": {
"^\\$.*$": {
"type": [
"string",
"array",
"object",
"number",
"boolean"
]
}
}
},
"transformations": {
"$id": "#/properties/transformations",
"type": [
"array",
"object"
],
"description": "The transformations property allows defining rules for string transformations. Using transformations, you can, e.g., obtain locale code from its file path or build the specific path where to write translated files. https://localazy.com/docs/cli/transformations",
"title": "Transformations",
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/transformations"
}
},
{
"$ref": "#/definitions/transformations"
}
]
},
"upload": {
"$id": "#/properties/upload",
"type": "object",
"description": "The upload section defines how to collect files that you want to upload to the Localazy platform for localization and what metadata to include. It also defines how to process uploaded data. https://localazy.com/docs/cli/upload-reference",
"title": "Upload section",
"properties": {
"deprecateMissing": {
"$id": "#/properties/upload/deprecateMissing",
"type": "boolean",
"default": false,
"description": "Tells the server to deprecate any phrase missing in this upload batch. Deprecated phrases are still available but are not visible to translators.",
"title": "Deprecate missing"
},
"deprecate": {
"$id": "#/properties/upload/deprecate",
"type": "string",
"default": "none",
"description": "Tells the server to deprecate any phrase missing in this upload batch. Deprecated phrases are still available but are not visible to translators.",
"title": "Deprecate missing",
"enum": [
"file",
"project",
"none"
]
},
"importAsNew": {
"$id": "#/properties/upload/importAsNew",
"type": "boolean",
"default": false,
"description": "Tells the server to import new phrases as unverified. Unverified phrases need to go through the review process. This option allows you to check translations using our unique review process if you are not sure of their quality. This option doesn’t apply to the source language.",
"title": "Import as new"
},
"allowDuplicateKeys": {
"$id": "#/properties/upload/allowDuplicateKeys",
"type": "boolean",
"default": false,
"description": "By default, you can have phrases with the same key in different files. For specific situations like using libraries and string overriding, it’s necessary to disable this option. You can find more on this topic in 'Modules, libraries, product flavors' article.",
"title": "Allow duplicate keys"
},
"skipFailedAutodetection": {
"$id": "#/properties/upload/skipFailedAutodetection",
"type": "boolean",
"default": true,
"description": "When set to true files that use auto-detection are skipped if the auto-detection is not possible. When set to false an exception is raised.",
"title": "Skip failed autodetection"
},
"filterSource": {
"$id": "#/properties/upload/filterSource",
"type": "boolean",
"description": "When set to true, strings that are the same as in the source langauge are not imported. This is important for platforms like iOS where localizable files contain the source phrase where the translation is not available. This option doesn’t apply to the source language.",
"title": "Filter source"
},
"forceCurrent": {
"$id": "#/properties/upload/forceCurrent",
"type": "boolean",
"default": false,
"description": "Tells the server to promote changes in translated files as approved and current translations for phrases that are already translated. If set to false, such changes go to the review process.",
"title": "Force current"
},
"forceSource": {
"$id": "#/properties/upload/forceSource",
"type": "boolean",
"default": false,
"description": "Tells the server to promote changes from uploaded source language files even if there are different versions on Localazy.",
"title": "Force source"
},
"appVersion": {
"$id": "#/properties/upload/appVersion",
"type": "number",
"default": 0,
"description": "Tells the server the version of the app in which the phrases where deprecated. It only makes sense with deprecateMissing switched to true. It allows for automatic versioning of deprecated phrases. This option can be provided on the command-line with -v option.",
"title": "App version"
},
"type": {
"$id": "#/properties/upload/type",
"type": "string",
"description": "Type of files you are about to upload. You can also define the type separately for each file. For more info about supported file formats check out the documentation.",
"title": "File type",
"enum": [
"android",
"json",
"arb",
"ios-strings",
"ios-plist",
"ios-stringsdict",
"xliff",
"resx",
"yaml",
"po",
"pot",
"json5",
"hjson",
"js",
"properties",
"ini",
"php",
"qt-ts",
"text",
"csv",
"neon",
"toml",
"excel",
"ods",
"srt",
"tmx",
"xcstrings",
"copy",
"captivate",
"ispring"
]
},
"folder": {
"$id": "#/properties/upload/folder",
"type": "string",
"description": "The base folder all operations are relative to. It can be relative or absolute path.",
"title": "Base folder"
},
"features": {
"$id": "#/properties/upload/features",
"type": [
"string",
"array"
],
"description": "The list of features (eg. how to parse plurals) to enable for the given type. See the list of supported file formats in documentation for more information. https://localazy.com/docs/cli/upload-reference#supported-file-formats",
"title": "Enabled features",
"anyOf": [
{
"$ref": "#/definitions/features"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/features"
}
}
]
},
"keySeparator": {
"$id": "#/properties/upload/keySeparator",
"type": "string",
"default": ".",
"description": "The separator used for building structured keys for includeKeys and excludeKeys. For more details: https://localazy.com/docs/cli/excluding-string-keys",
"title": "Key separator"
},
"includeKeys": {
"$id": "#/properties/upload/includeKeys",
"type": "array",
"description": "A list of rules for determining keys to include. For more details: https://localazy.com/docs/cli/excluding-string-keys",
"title": "Included keys",
"items": {
"type": "string"
}
},
"excludeKeys": {
"$id": "#/properties/upload/excludeKeys",
"type": "array",
"description": "A list of rules for determining keys to exclude. For more details: https://localazy.com/docs/cli/excluding-string-keys",
"title": "Excluded keys",
"items": {
"type": "string"
}
},
"files": {
"$id": "#/properties/upload/files",
"type": [
"string",
"array",
"object"
],
"description": "The files contains a list of rules for collecting files for upload. You can include files by their exact path or by using standard path wildcards ? (single character), * (anything except path separator), ** (anything including path separators). You can control files that you want to upload with exclusion rules and conditions.",
"title": "Upload files",
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/files"
}
},
{
"$ref": "#/definitions/subtype"
}
]
}
},
"additionalProperties": false,
"patternProperties": {
"^\\$.*$": {
"type": [
"string",
"array",
"object",
"number",
"boolean"
]
}
}
},
"conversion": {
"$id": "#/properties/conversion",
"type": "object",
"description": "The conversion property describes how to convert localizable files between different formats. https://localazy.com/docs/cli/format-conversions#full-configuration",
"title": "Conversion",
"properties": {
"folder": {
"$id": "#/properties/conversion/folder",
"type": "string",
"description": "The base folder all operations are relative to. It can be relative or absolute path.",
"title": "Base folder"
},
"excludedLangs": {
"$id": "#/properties/conversion/excludedLangs",
"type": "array",
"description": "The list of languages to exclude from processing.",
"title": "Excluded languages",
"items": {
"type": "string"
}
},
"actions": {
"$id": "#/properties/conversion/actions",
"type": [
"array",
"object"
],
"description": "Define the conversion rules.",
"title": "Actions",
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/actions"
}
},
{
"$ref": "#/definitions/actions"
}
]
}
},
"additionalProperties": false,
"patternProperties": {
"^\\$.*$": {
"type": [
"string",
"array",
"object",
"number",
"boolean"
]
}
}
},
"download": {
"$id": "#/properties/download",
"type": "object",
"description": "The download property describes how to process translated files and where to write them. https://localazy.com/docs/cli/download-reference",
"title": "Download",
"properties": {
"includeSourceLang": {
"$id": "#/properties/download/includeSourceLang",
"type": "boolean",
"default": false,
"description": "By default, the source language is not downloaded. Set it to true to include source files as well."
},
"folder": {
"$id": "#/properties/download/folder",
"type": "string",
"description": "Base folder for the download action. It can be relative or absolute path."
},
"metadataFileJson": {
"$id": "#/properties/download/metadataFileJson",
"type": "string",
"description": "Path where JSON language metadata file should be downloaded. https://localazy.com/docs/cli/metadata-file",
"title": "JSON metadata file"
},
"metadataFileJs": {
"$id": "#/properties/download/metadataFileJs",
"type": "string",
"description": "Path where JavaScript language metadata file should be downloaded. https://localazy.com/docs/cli/metadata-file",
"title": "JavaScript metadata file"
},
"metadataFileTs": {
"$id": "#/properties/download/metadataFileTs",
"type": "string",
"description": "Path where TypeScript language metadata file should be downloaded. https://localazy.com/docs/cli/metadata-file",
"title": "TypeScript metadata file"
},
"metadataVersion": {
"$id": "#/properties/download/metadataVersion",
"type": "string",
"description": "By default, export oldest metadata format. Set it to 2 to export the newest metadata format.",
"title": "Metadata file version"
},
"langAliases": {
"$id": "#/properties/download/langAliases",
"type": "object",
"description": "Maps languages to different ones.",
"additionalProperties": true
},
"langExpansions": {
"$id": "#/properties/download/langExpansions",
"type": "object",
"description": "Adds additional languages to output; the same file will be saved several time.",
"additionalProperties": true
},
"excludedLangs": {
"$id": "#/properties/download/excludedLangs",
"type": [
"array",
"string"
],
"description": "The list of languages to exclude from processing.",
"title": "Excluded languages",
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"files": {
"$id": "#/properties/download/files",
"type": [
"string",
"array",
"object"
],
"description": "The rules to apply to all translated files. It can be either array object or a pattern string.",
"title": "Output files",
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/files_2"
}
},
{
"$ref": "#/definitions/subtype_1"
}
]
}
},
"additionalProperties": false,
"patternProperties": {
"^\\$.*$": {
"type": [
"string",
"array",
"object",
"number",
"boolean"
]
}
}
}
},
"definitions": {
"transformations": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the newly created variable. It will be accessible as ${name}. https://localazy.com/docs/cli/variables",
"title": "Name"
},
"source": {
"type": "string",
"description": "The source of the variable. Usually, it's a string consisting of other variables. https://localazy.com/docs/cli/variables",
"title": "Source"
},
"operations": {
"type": [
"string",
"array"
],
"description": "The operations to perform on the source string to get the new variable. https://localazy.com/docs/cli/transformations#operations",
"title": "Operations",
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
}
},
"additionalProperties": false,
"patternProperties": {
"^\\$.*$": {
"type": [
"string",
"array",
"object",
"number",
"boolean"
]
}
}
},
"features": {
"type": "string",
"enum": [
"escape_new_lines",
"content_as_array",
"content_as_object",
"requirejs",
"multilingual",
"filter_untranslated",
"array",
"array_br",
"plural_array",
"plural_postfix_dd",
"plural_postfix_sd",
"plural_postfix_us",
"plural_postfix_cc",
"plural_postfix_br",
"plural_pipeline",
"plural_i18next",
"plural_object",
"plural_icu",
"arb_metadata",
"arb_locale_lang",
"arb_locale_full",
"source_is_key",
"skip_empty",
"add_bom",
"parse_array",
"parse_plurals",
"parse_others",
"skip_plurals",
"output_entities",
"dont_parse_source",
"dont_parse_target",
"use_project_lang",
"use_defined_lang_for_source",
"use_defined_lang_for_target",
"dont_fuzzy_match_lang",
"use_unicode",
"parse_plurals_ios",
"parse_plurals_icu",
"omit_id_for_source_is_key",
"decode_html_entities",
"store_attrs",
"ignore_original",
"ignore_id",
"ignore_extras",
"lang_root",
"output_mo",
"empty_untranslated",
"use_key_for_content",
"force_key_for_content",
"ignore_blank_content",
"skip_source",
"use_blank_content",
"preserve_comments",
"output_json",
"force_quotes",
"latin1",
"force_escaping",
"source_is_content",
"prefer_source_as_key",
"include_source",
"prefer_message_id",
"no_header",
"delimiter_tab",
"delimiter_semicolon",
"quote_single",
"quote_backslash",
"line_rn",
"line_nr",
"line_n",
"line_r",
"use_key_for_source",
"omit_state",
"omit_extraction",
"keep_comments",
"dont_skip_placeholders",
"columns=",
"included_langs=",
"lang_format=ll-rr#scrp",
"lang_format=ll-rr-scrp",
"lang_format=ll-scrp-rr",
"lang_format=ll-scrp_rr",
"lang_format=ll_rr_scrp",
"lang_format=ll_scrp_rr",
"lang_format=ll+rr+scrp",
"lang_format=ll+scrp+rr",
"lang_format=locale_name",
"lang_format=bcp",
"lang_format=android_noscript",
"lang_format=android",
"encoding=win-1252",
"encoding=iso-8859-1",
"encoding=auto",
"encoding=utf8",
"encoding=utf16",
"encoding=utf16le",
"encoding=utf16be",
"encoding=ansi"
]
},
"conditions": {
"type": [
"string",
"array"
],
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"subtype": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Type of files you are about to upload. For more info about supported file formats check out the documentation. https://localazy.com/docs/cli/upload-reference",
"title": "File type",
"enum": [
"android",
"json",
"arb",
"ios-strings",
"ios-plist",
"ios-stringsdict",
"xliff",
"resx",
"yaml",
"po",
"pot",
"json5",
"hjson",
"js",
"properties",
"ini",
"php",
"qt-ts",
"text",
"csv",
"neon",
"toml",
"excel",
"ods",
"srt",
"tmx",
"xcstrings",
"copy",
"captivate",
"ispring"
]
},
"features": {
"type": [
"string",
"array"
],
"description": "The list of features (eg. how to parse plurals) to enable for the given type. See the list of supported file formats in documentation for more information. https://localazy.com/docs/cli/upload-reference#supported-file-formats",
"title": "Enabled features",
"anyOf": [
{
"$ref": "#/definitions/features"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/features"
}
}
]
},
"lang": {
"type": "string",
"default": "inherited",
"description": "The language of the file being uploaded (format: ll-Scrp-RR). Special default value inherited from the project’s base language.",
"title": "Language"
},
"group": {
"type": "string",
"description": "Allows to assign files to groups and run their rules separately.",
"title": "Group"
},
"buildType": {
"type": "string",
"description": "The custom build type for the file. See Modules, libraries, flavors for more details. https://localazy.com/docs/cli/modules-libraries-product-flavors#build-type",
"title": "Build type"
},
"productFlavors": {
"type": "string",
"description": "The custom product flavors for the file. See Modules, libraries, flavors for more details. https://localazy.com/docs/cli/modules-libraries-product-flavors#product-flavors",
"title": "Product flavors"
},
"module": {
"type": "string",
"description": "The module the file belongs to. See Modules, libraries, flavors for more details. https://localazy.com/docs/cli/modules-libraries-product-flavors#module",
"title": "Module"
},
"library": {
"type": "string",
"description": "The library the file belongs to. See Modules, libraries, flavors for more details. https://localazy.com/docs/cli/modules-libraries-product-flavors#library",
"title": "Library"
},
"path": {
"type": "string",
"description": "The path to be used for upload.",
"title": "Path"
},
"file": {
"type": "string",
"description": "The file name to be used for upload.",
"title": "File"
},
"pattern": {
"type": "string",
"description": "The pattern to use for collecting files. Standard path wildcards ? (single character), * (anything except path separator), ** (anything including path separators) are supported.",
"title": "Collect pattern"
},
"excludes": {
"type": "array",
"description": "The list of patterns used for excluding files. Standard path wildcards ? (single character), * (anything except path separator), ** (anything including path separators) are supported.",
"title": "Exclude list",
"items": {
"type": "string"
}
},
"conditions": {
"type": [
"string",
"array"
],
"description": "With conditions, you can introduce complex logic for processing files when they are downloaded. See documentation for options. https://localazy.com/docs/cli/conditions",
"title": "Conditions",
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/conditions"
}
}
]
},
"remap": {
"type": "object",
"description": "The remap property allows you to remap the structure of the file. https://localazy.com/docs/cli/remap",
"title": "Remap",
"properties": {
"type": {
"type": "string",
"description": "The target type of the file to be uploaded data remapped to.",
"title": "Remap type",
"enum": [
"android",
"json",
"json-multilingual",
"arb",
"require-js",
"json-mozzila",
"ios-strings",
"ios-plist",
"ios-stringsdict",
"resx",
"yaml",
"yaml-rails",
"yaml-multilingual",
"po",
"json5",
"json5-multilingual",
"hjson",
"hjson-multilingual",
"js",
"js-multilingual",
"properties",
"ini",
"ini-multilingual",
"php",
"php-multilingual",
"qt-ts",
"csv",
"csv-multilingual",
"neon",
"neon-multilingual",
"toml",
"toml-multilingual",
"excel",
"excel-multilingual",
"ods",
"ods-multilingual",
"tmx",
"xcstrings",
"api"
]
},
"flatten": {
"type": "string",
"description": "A separator to be used for flattening structured/nested keys.",
"title": "Flatten"
},
"nest": {
"type": "string",
"description": "A separator to be used for nesting flatten keys.",
"title": "Nest"
},
"array": {
"type": "string",
"description": "A type of plural to be used for remapping plurals.",
"title": "Array"
},
"plural": {
"type": "string",
"description": "A type of arrays to be used for remapping arrays.",
"title": "Plural"
}
},
"additionalProperties": false,
"patternProperties": {
"^\\$.*$": {
"type": [
"string",
"array",
"object",
"number",
"boolean"
]
}
}
}
},
"additionalProperties": false,
"patternProperties": {
"^\\$.*$": {
"type": [
"string",
"array",
"object",
"number",
"boolean"
]
}
}
},
"files": {
"type": [
"string",
"object"
],
"anyOf": [
{
"type": "string"
},
{
"$ref": "#/definitions/subtype"
}
]
},
"actions": {
"type": "object",
"properties": {
"group": {
"type": "string",
"description": "Allows to assign files to groups and run their rules separately.",
"title": "Group"
},
"conditions": {
"type": [
"string",
"array"
],
"description": "With conditions, you can introduce complex logic for processing files when they are downloaded. See documentation for options. https://localazy.com/docs/cli/conditions",
"title": "Conditions",
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/conditions"
}
}
]
},
"keySeparator": {
"type": "string",
"default": ".",
"description": "The separator used for building structured keys for includeKeys and excludeKeys. For more details: https://localazy.com/docs/cli/excluding-string-keys",
"title": "Key separator"
},
"includeKeys": {
"type": "array",
"description": "A list of rules for determining keys to include. For more details: https://localazy.com/docs/cli/excluding-string-keys",
"title": "Included keys",
"items": {
"type": "string"
}
},
"excludeKeys": {
"type": "array",
"description": "A list of rules for determining keys to exclude. For more details: https://localazy.com/docs/cli/excluding-string-keys",
"title": "Excluded keys",
"items": {
"type": "string"
}
},
"replacements": {
"type": "object",
"description": "Define rules for text changes and placeholder replacements.",
"title": "Replacements",
"additionalProperties": true
},
"langAliases": {
"type": "object",
"description": "Maps languages to different ones.",
"title": "Language aliases",
"additionalProperties": true
},
"langExpansions": {
"type": "object",
"description": "Adds additional languages to output; the same file will be saved several time.",
"title": "Language expansions",
"additionalProperties": true
},
"stop": {
"type": "boolean",
"default": false,
"description": "If true, no more rules are processed for the given file. Only makes sense if more output rules are defined. By default, the first matching rule stops processing for the file.",
"title": "Stop processing"
},
"changeExtension": {
"type": "string",
"description": "If defined, change the extension of the output file. Applied to the final output after resolving all variables.",
"title": "Change extension"
},
"output": {
"type": "string",
"description": "The pattern for generating output path and file. Use variables to build the pattern. https://localazy.com/docs/cli/variables",
"title": "Output pattern"
},
"type": {
"type": "string",
"description": "The type of the conversion to be performed with files. See docs for available types and their parameters. https://localazy.com/docs/cli/format-conversions#available-conversions",
"title": "Conversion type",
"enum": [
"android",
"arb",
"csv",
"csv-multilingual",
"excel",
"excel-multilingual",
"ini",
"ini-multilingual",
"ios-strings",
"ios-stringsdict",
"json",
"json-mozilla",
"json-multilingual",
"mo",
"neon",
"neon-multilingual",
"ods",
"ods-multilingual",
"php",
"php-multilingual",