@x18n/core 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,374 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "$schema": {
5
+ "type": "string"
6
+ },
7
+ "name": {
8
+ "type": "string"
9
+ },
10
+ "detect": {
11
+ "type": "object",
12
+ "properties": {
13
+ "dependencies": {
14
+ "type": "object",
15
+ "properties": {
16
+ "any": {
17
+ "type": "array",
18
+ "items": {
19
+ "type": "string"
20
+ }
21
+ },
22
+ "all": {
23
+ "type": "array",
24
+ "items": {
25
+ "type": "string"
26
+ }
27
+ }
28
+ },
29
+ "required": [],
30
+ "additionalProperties": false
31
+ },
32
+ "files": {
33
+ "type": "array",
34
+ "items": {
35
+ "type": "string"
36
+ }
37
+ }
38
+ },
39
+ "required": [],
40
+ "additionalProperties": false
41
+ },
42
+ "exclusive": {
43
+ "type": "boolean"
44
+ },
45
+ "config": {
46
+ "type": "object",
47
+ "properties": {
48
+ "sourceLocale": {
49
+ "type": "string"
50
+ },
51
+ "locales": {
52
+ "type": "array",
53
+ "items": {
54
+ "type": "string"
55
+ }
56
+ },
57
+ "resources": {
58
+ "type": "array",
59
+ "items": {
60
+ "type": "object",
61
+ "properties": {
62
+ "pattern": {
63
+ "type": "string"
64
+ },
65
+ "format": {
66
+ "type": "string"
67
+ },
68
+ "namespace": {
69
+ "type": "string"
70
+ },
71
+ "locale": {
72
+ "type": "string"
73
+ },
74
+ "execute": {
75
+ "type": "boolean"
76
+ }
77
+ },
78
+ "required": [
79
+ "pattern"
80
+ ],
81
+ "additionalProperties": false
82
+ }
83
+ },
84
+ "namespace": {
85
+ "type": "object",
86
+ "properties": {
87
+ "separator": {
88
+ "type": "string"
89
+ },
90
+ "default": {
91
+ "type": "string"
92
+ },
93
+ "fromPath": {
94
+ "enum": [
95
+ "dot",
96
+ "slash",
97
+ "camel"
98
+ ],
99
+ "type": "string"
100
+ }
101
+ },
102
+ "required": [],
103
+ "additionalProperties": false
104
+ },
105
+ "keyStyle": {
106
+ "enum": [
107
+ "auto",
108
+ "nested",
109
+ "flat"
110
+ ],
111
+ "type": "string"
112
+ }
113
+ },
114
+ "required": [],
115
+ "additionalProperties": false
116
+ },
117
+ "scanners": {
118
+ "type": "object",
119
+ "properties": {
120
+ "calls": {
121
+ "type": "array",
122
+ "items": {
123
+ "type": "object",
124
+ "properties": {
125
+ "callee": {
126
+ "anyOf": [
127
+ {
128
+ "type": "string"
129
+ },
130
+ {
131
+ "type": "array",
132
+ "items": {
133
+ "type": "string"
134
+ }
135
+ }
136
+ ]
137
+ },
138
+ "kind": {
139
+ "enum": [
140
+ "call",
141
+ "selector",
142
+ "accessor"
143
+ ],
144
+ "type": "string"
145
+ },
146
+ "key": {
147
+ "anyOf": [
148
+ {
149
+ "type": "number"
150
+ },
151
+ {
152
+ "type": "object",
153
+ "properties": {
154
+ "arg": {
155
+ "type": "number"
156
+ },
157
+ "property": {
158
+ "type": "string"
159
+ }
160
+ },
161
+ "required": [
162
+ "arg"
163
+ ],
164
+ "additionalProperties": false
165
+ }
166
+ ]
167
+ },
168
+ "namespace": {
169
+ "type": "object",
170
+ "properties": {
171
+ "arg": {
172
+ "type": "number"
173
+ },
174
+ "property": {
175
+ "type": "string"
176
+ }
177
+ },
178
+ "required": [
179
+ "arg"
180
+ ],
181
+ "additionalProperties": false
182
+ },
183
+ "keyPrefix": {
184
+ "type": "object",
185
+ "properties": {
186
+ "arg": {
187
+ "type": "number"
188
+ },
189
+ "property": {
190
+ "type": "string"
191
+ }
192
+ },
193
+ "required": [
194
+ "arg"
195
+ ],
196
+ "additionalProperties": false
197
+ },
198
+ "factory": {
199
+ "type": "boolean"
200
+ },
201
+ "returns": {
202
+ "type": "array",
203
+ "items": {
204
+ "type": "string"
205
+ }
206
+ },
207
+ "types": {
208
+ "type": "array",
209
+ "items": {
210
+ "type": "string"
211
+ }
212
+ }
213
+ },
214
+ "required": [
215
+ "callee"
216
+ ],
217
+ "additionalProperties": false
218
+ }
219
+ },
220
+ "regex": {
221
+ "type": "array",
222
+ "items": {
223
+ "type": "object",
224
+ "properties": {
225
+ "extensions": {
226
+ "type": "array",
227
+ "items": {
228
+ "type": "string"
229
+ }
230
+ },
231
+ "patterns": {
232
+ "type": "array",
233
+ "items": {
234
+ "type": "string"
235
+ }
236
+ }
237
+ },
238
+ "required": [
239
+ "extensions",
240
+ "patterns"
241
+ ],
242
+ "additionalProperties": false
243
+ }
244
+ }
245
+ },
246
+ "required": [],
247
+ "additionalProperties": false
248
+ },
249
+ "scopes": {
250
+ "type": "object",
251
+ "properties": {
252
+ "regex": {
253
+ "type": "string"
254
+ }
255
+ },
256
+ "required": [
257
+ "regex"
258
+ ],
259
+ "additionalProperties": false
260
+ },
261
+ "derivedKeys": {
262
+ "type": "array",
263
+ "items": {
264
+ "type": "string"
265
+ }
266
+ },
267
+ "normalizeKey": {
268
+ "type": "array",
269
+ "items": {
270
+ "type": "object",
271
+ "properties": {
272
+ "replace": {
273
+ "type": "object",
274
+ "properties": {
275
+ "pattern": {
276
+ "type": "string"
277
+ },
278
+ "with": {
279
+ "type": "string"
280
+ }
281
+ },
282
+ "required": [
283
+ "pattern",
284
+ "with"
285
+ ],
286
+ "additionalProperties": false
287
+ }
288
+ },
289
+ "required": [
290
+ "replace"
291
+ ],
292
+ "additionalProperties": false
293
+ }
294
+ },
295
+ "placeholders": {
296
+ "type": "array",
297
+ "items": {
298
+ "type": "string"
299
+ }
300
+ },
301
+ "localeInfo": {
302
+ "type": "object",
303
+ "propertyNames": {
304
+ "type": "string"
305
+ },
306
+ "additionalProperties": {
307
+ "type": "object",
308
+ "properties": {
309
+ "flag": {
310
+ "type": "string"
311
+ },
312
+ "displayName": {
313
+ "type": "string"
314
+ }
315
+ },
316
+ "required": [],
317
+ "additionalProperties": false
318
+ }
319
+ },
320
+ "extract": {
321
+ "type": "object",
322
+ "properties": {
323
+ "templates": {
324
+ "type": "array",
325
+ "items": {
326
+ "anyOf": [
327
+ {
328
+ "type": "string"
329
+ },
330
+ {
331
+ "type": "object",
332
+ "properties": {
333
+ "template": {
334
+ "type": "string"
335
+ },
336
+ "kinds": {
337
+ "type": "array",
338
+ "items": {
339
+ "type": "string"
340
+ }
341
+ },
342
+ "files": {
343
+ "type": "array",
344
+ "items": {
345
+ "type": "string"
346
+ }
347
+ },
348
+ "imports": {
349
+ "type": "array",
350
+ "items": {
351
+ "type": "string"
352
+ }
353
+ }
354
+ },
355
+ "required": [
356
+ "template"
357
+ ],
358
+ "additionalProperties": false
359
+ }
360
+ ]
361
+ }
362
+ }
363
+ },
364
+ "required": [],
365
+ "additionalProperties": false
366
+ }
367
+ },
368
+ "required": [
369
+ "name"
370
+ ],
371
+ "additionalProperties": false,
372
+ "$schema": "http://json-schema.org/draft-07/schema#",
373
+ "title": "x18n YAML plugin"
374
+ }