@x18n/core 0.0.13 → 0.0.15

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@x18n/core",
3
3
  "type": "module",
4
- "version": "0.0.13",
4
+ "version": "0.0.15",
5
5
  "description": "Runtime-neutral engine of x18n: domain model, plugin API and project analysis",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -145,6 +145,21 @@
145
145
  "default": {
146
146
  "type": "string"
147
147
  },
148
+ "fallback": {
149
+ "type": "array",
150
+ "items": {
151
+ "type": "string"
152
+ }
153
+ },
154
+ "byFile": {
155
+ "type": "object",
156
+ "propertyNames": {
157
+ "type": "string"
158
+ },
159
+ "additionalProperties": {
160
+ "type": "string"
161
+ }
162
+ },
148
163
  "fromPath": {
149
164
  "enum": [
150
165
  "dot",
@@ -221,19 +236,26 @@
221
236
  ]
222
237
  },
223
238
  "namespace": {
224
- "type": "object",
225
- "properties": {
226
- "arg": {
227
- "type": "number"
239
+ "anyOf": [
240
+ {
241
+ "type": "object",
242
+ "properties": {
243
+ "arg": {
244
+ "type": "number"
245
+ },
246
+ "property": {
247
+ "type": "string"
248
+ }
249
+ },
250
+ "required": [
251
+ "arg"
252
+ ],
253
+ "additionalProperties": false
228
254
  },
229
- "property": {
255
+ {
230
256
  "type": "string"
231
257
  }
232
- },
233
- "required": [
234
- "arg"
235
- ],
236
- "additionalProperties": false
258
+ ]
237
259
  },
238
260
  "keyPrefix": {
239
261
  "type": "object",
@@ -569,6 +591,32 @@
569
591
  }
570
592
  ]
571
593
  },
594
+ "review": {
595
+ "type": "object",
596
+ "properties": {
597
+ "enabled": {
598
+ "type": "boolean"
599
+ },
600
+ "file": {
601
+ "type": "string"
602
+ },
603
+ "author": {
604
+ "type": "object",
605
+ "properties": {
606
+ "name": {
607
+ "type": "string"
608
+ },
609
+ "email": {
610
+ "type": "string"
611
+ }
612
+ },
613
+ "required": [],
614
+ "additionalProperties": false
615
+ }
616
+ },
617
+ "required": [],
618
+ "additionalProperties": false
619
+ },
572
620
  "projects": {
573
621
  "type": "array",
574
622
  "items": {
@@ -90,6 +90,21 @@
90
90
  "default": {
91
91
  "type": "string"
92
92
  },
93
+ "fallback": {
94
+ "type": "array",
95
+ "items": {
96
+ "type": "string"
97
+ }
98
+ },
99
+ "byFile": {
100
+ "type": "object",
101
+ "propertyNames": {
102
+ "type": "string"
103
+ },
104
+ "additionalProperties": {
105
+ "type": "string"
106
+ }
107
+ },
93
108
  "fromPath": {
94
109
  "enum": [
95
110
  "dot",
@@ -166,19 +181,26 @@
166
181
  ]
167
182
  },
168
183
  "namespace": {
169
- "type": "object",
170
- "properties": {
171
- "arg": {
172
- "type": "number"
184
+ "anyOf": [
185
+ {
186
+ "type": "object",
187
+ "properties": {
188
+ "arg": {
189
+ "type": "number"
190
+ },
191
+ "property": {
192
+ "type": "string"
193
+ }
194
+ },
195
+ "required": [
196
+ "arg"
197
+ ],
198
+ "additionalProperties": false
173
199
  },
174
- "property": {
200
+ {
175
201
  "type": "string"
176
202
  }
177
- },
178
- "required": [
179
- "arg"
180
- ],
181
- "additionalProperties": false
203
+ ]
182
204
  },
183
205
  "keyPrefix": {
184
206
  "type": "object",
@@ -0,0 +1,98 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "$schema": {
5
+ "type": "string"
6
+ },
7
+ "x18n": {
8
+ "const": 1
9
+ },
10
+ "threads": {
11
+ "type": "object",
12
+ "propertyNames": {
13
+ "type": "string"
14
+ },
15
+ "additionalProperties": {
16
+ "type": "object",
17
+ "propertyNames": {
18
+ "type": "string"
19
+ },
20
+ "additionalProperties": {
21
+ "type": "array",
22
+ "items": {
23
+ "type": "object",
24
+ "properties": {
25
+ "id": {
26
+ "type": "string"
27
+ },
28
+ "type": {
29
+ "enum": [
30
+ "comment",
31
+ "approve",
32
+ "request-change",
33
+ "suggestion"
34
+ ],
35
+ "type": "string"
36
+ },
37
+ "author": {
38
+ "type": "object",
39
+ "properties": {
40
+ "name": {
41
+ "type": "string"
42
+ },
43
+ "email": {
44
+ "type": "string"
45
+ }
46
+ },
47
+ "required": [],
48
+ "additionalProperties": false
49
+ },
50
+ "time": {
51
+ "type": "string"
52
+ },
53
+ "text": {
54
+ "type": "string"
55
+ },
56
+ "suggestion": {
57
+ "type": "string"
58
+ },
59
+ "value": {
60
+ "type": "string"
61
+ },
62
+ "resolved": {
63
+ "type": "boolean"
64
+ }
65
+ },
66
+ "required": [
67
+ "id",
68
+ "type",
69
+ "time"
70
+ ],
71
+ "additionalProperties": false
72
+ }
73
+ }
74
+ }
75
+ },
76
+ "sources": {
77
+ "type": "object",
78
+ "propertyNames": {
79
+ "type": "string"
80
+ },
81
+ "additionalProperties": {
82
+ "type": "object",
83
+ "propertyNames": {
84
+ "type": "string"
85
+ },
86
+ "additionalProperties": {
87
+ "type": "string"
88
+ }
89
+ }
90
+ }
91
+ },
92
+ "required": [
93
+ "x18n"
94
+ ],
95
+ "additionalProperties": false,
96
+ "$schema": "http://json-schema.org/draft-07/schema#",
97
+ "title": "x18n reviews"
98
+ }