@x18n/core 0.0.0 → 0.0.2

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.
@@ -1,366 +0,0 @@
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
- },
94
- "required": [],
95
- "additionalProperties": false
96
- },
97
- "keyStyle": {
98
- "enum": [
99
- "auto",
100
- "nested",
101
- "flat"
102
- ],
103
- "type": "string"
104
- }
105
- },
106
- "required": [],
107
- "additionalProperties": false
108
- },
109
- "scanners": {
110
- "type": "object",
111
- "properties": {
112
- "calls": {
113
- "type": "array",
114
- "items": {
115
- "type": "object",
116
- "properties": {
117
- "callee": {
118
- "anyOf": [
119
- {
120
- "type": "string"
121
- },
122
- {
123
- "type": "array",
124
- "items": {
125
- "type": "string"
126
- }
127
- }
128
- ]
129
- },
130
- "kind": {
131
- "enum": [
132
- "call",
133
- "selector",
134
- "accessor"
135
- ],
136
- "type": "string"
137
- },
138
- "key": {
139
- "anyOf": [
140
- {
141
- "type": "number"
142
- },
143
- {
144
- "type": "object",
145
- "properties": {
146
- "arg": {
147
- "type": "number"
148
- },
149
- "property": {
150
- "type": "string"
151
- }
152
- },
153
- "required": [
154
- "arg"
155
- ],
156
- "additionalProperties": false
157
- }
158
- ]
159
- },
160
- "namespace": {
161
- "type": "object",
162
- "properties": {
163
- "arg": {
164
- "type": "number"
165
- },
166
- "property": {
167
- "type": "string"
168
- }
169
- },
170
- "required": [
171
- "arg"
172
- ],
173
- "additionalProperties": false
174
- },
175
- "keyPrefix": {
176
- "type": "object",
177
- "properties": {
178
- "arg": {
179
- "type": "number"
180
- },
181
- "property": {
182
- "type": "string"
183
- }
184
- },
185
- "required": [
186
- "arg"
187
- ],
188
- "additionalProperties": false
189
- },
190
- "factory": {
191
- "type": "boolean"
192
- },
193
- "returns": {
194
- "type": "array",
195
- "items": {
196
- "type": "string"
197
- }
198
- },
199
- "types": {
200
- "type": "array",
201
- "items": {
202
- "type": "string"
203
- }
204
- }
205
- },
206
- "required": [
207
- "callee"
208
- ],
209
- "additionalProperties": false
210
- }
211
- },
212
- "regex": {
213
- "type": "array",
214
- "items": {
215
- "type": "object",
216
- "properties": {
217
- "extensions": {
218
- "type": "array",
219
- "items": {
220
- "type": "string"
221
- }
222
- },
223
- "patterns": {
224
- "type": "array",
225
- "items": {
226
- "type": "string"
227
- }
228
- }
229
- },
230
- "required": [
231
- "extensions",
232
- "patterns"
233
- ],
234
- "additionalProperties": false
235
- }
236
- }
237
- },
238
- "required": [],
239
- "additionalProperties": false
240
- },
241
- "scopes": {
242
- "type": "object",
243
- "properties": {
244
- "regex": {
245
- "type": "string"
246
- }
247
- },
248
- "required": [
249
- "regex"
250
- ],
251
- "additionalProperties": false
252
- },
253
- "derivedKeys": {
254
- "type": "array",
255
- "items": {
256
- "type": "string"
257
- }
258
- },
259
- "normalizeKey": {
260
- "type": "array",
261
- "items": {
262
- "type": "object",
263
- "properties": {
264
- "replace": {
265
- "type": "object",
266
- "properties": {
267
- "pattern": {
268
- "type": "string"
269
- },
270
- "with": {
271
- "type": "string"
272
- }
273
- },
274
- "required": [
275
- "pattern",
276
- "with"
277
- ],
278
- "additionalProperties": false
279
- }
280
- },
281
- "required": [
282
- "replace"
283
- ],
284
- "additionalProperties": false
285
- }
286
- },
287
- "placeholders": {
288
- "type": "array",
289
- "items": {
290
- "type": "string"
291
- }
292
- },
293
- "localeInfo": {
294
- "type": "object",
295
- "propertyNames": {
296
- "type": "string"
297
- },
298
- "additionalProperties": {
299
- "type": "object",
300
- "properties": {
301
- "flag": {
302
- "type": "string"
303
- },
304
- "displayName": {
305
- "type": "string"
306
- }
307
- },
308
- "required": [],
309
- "additionalProperties": false
310
- }
311
- },
312
- "extract": {
313
- "type": "object",
314
- "properties": {
315
- "templates": {
316
- "type": "array",
317
- "items": {
318
- "anyOf": [
319
- {
320
- "type": "string"
321
- },
322
- {
323
- "type": "object",
324
- "properties": {
325
- "template": {
326
- "type": "string"
327
- },
328
- "kinds": {
329
- "type": "array",
330
- "items": {
331
- "type": "string"
332
- }
333
- },
334
- "files": {
335
- "type": "array",
336
- "items": {
337
- "type": "string"
338
- }
339
- },
340
- "imports": {
341
- "type": "array",
342
- "items": {
343
- "type": "string"
344
- }
345
- }
346
- },
347
- "required": [
348
- "template"
349
- ],
350
- "additionalProperties": false
351
- }
352
- ]
353
- }
354
- }
355
- },
356
- "required": [],
357
- "additionalProperties": false
358
- }
359
- },
360
- "required": [
361
- "name"
362
- ],
363
- "additionalProperties": false,
364
- "$schema": "http://json-schema.org/draft-07/schema#",
365
- "title": "x18n YAML plugin"
366
- }