@lingo.dev/_spec 0.27.0 → 0.29.0
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/build/i18n.schema.json +8 -0
- package/build/index.cjs +31 -7
- package/build/index.d.cts +335 -23
- package/build/index.d.ts +335 -23
- package/build/index.mjs +30 -6
- package/package.json +1 -1
package/build/i18n.schema.json
CHANGED
@@ -85,6 +85,13 @@
|
|
85
85
|
"items": {
|
86
86
|
"type": "string"
|
87
87
|
}
|
88
|
+
},
|
89
|
+
"lockedKeys": {
|
90
|
+
"type": "array",
|
91
|
+
"items": {
|
92
|
+
"type": "string"
|
93
|
+
},
|
94
|
+
"default": []
|
88
95
|
}
|
89
96
|
},
|
90
97
|
"additionalProperties": false
|
@@ -97,6 +104,7 @@
|
|
97
104
|
"html",
|
98
105
|
"json",
|
99
106
|
"markdown",
|
107
|
+
"mdx",
|
100
108
|
"xcode-strings",
|
101
109
|
"xcode-stringsdict",
|
102
110
|
"xcode-xcstrings",
|
package/build/index.cjs
CHANGED
@@ -315,6 +315,7 @@ var bucketTypes = [
|
|
315
315
|
"html",
|
316
316
|
"json",
|
317
317
|
"markdown",
|
318
|
+
"mdx",
|
318
319
|
"xcode-strings",
|
319
320
|
"xcode-stringsdict",
|
320
321
|
"xcode-xcstrings",
|
@@ -462,15 +463,16 @@ var bucketItemSchema = _zod2.default.object({
|
|
462
463
|
path: _zod2.default.string(),
|
463
464
|
delimiter: _zod2.default.union([_zod2.default.literal("-"), _zod2.default.literal("_"), _zod2.default.literal(null)]).optional()
|
464
465
|
});
|
466
|
+
var bucketValueSchemaV1_3 = _zod2.default.object({
|
467
|
+
include: _zod2.default.array(_zod2.default.union([_zod2.default.string(), bucketItemSchema])).default([]),
|
468
|
+
exclude: _zod2.default.array(_zod2.default.union([_zod2.default.string(), bucketItemSchema])).default([]).optional(),
|
469
|
+
injectLocale: _zod2.default.array(_zod2.default.string()).optional()
|
470
|
+
});
|
465
471
|
var configV1_3Definition = extendConfigDefinition(configV1_2Definition, {
|
466
472
|
createSchema: (baseSchema) => baseSchema.extend({
|
467
473
|
buckets: _zod2.default.record(
|
468
474
|
bucketTypeSchema,
|
469
|
-
|
470
|
-
include: _zod2.default.array(_zod2.default.union([_zod2.default.string(), bucketItemSchema])).default([]),
|
471
|
-
exclude: _zod2.default.array(_zod2.default.union([_zod2.default.string(), bucketItemSchema])).default([]).optional(),
|
472
|
-
injectLocale: _zod2.default.array(_zod2.default.string()).optional()
|
473
|
-
})
|
475
|
+
bucketValueSchemaV1_3
|
474
476
|
).default({})
|
475
477
|
}),
|
476
478
|
createDefaultValue: (baseDefaultValue) => ({
|
@@ -531,7 +533,26 @@ var configV1_5Definition = extendConfigDefinition(configV1_4Definition, {
|
|
531
533
|
version: 1.5
|
532
534
|
})
|
533
535
|
});
|
534
|
-
var
|
536
|
+
var bucketValueSchemaV1_6 = bucketValueSchemaV1_3.extend({
|
537
|
+
lockedKeys: _zod2.default.array(_zod2.default.string()).default([]).optional()
|
538
|
+
});
|
539
|
+
var configV1_6Definition = extendConfigDefinition(configV1_5Definition, {
|
540
|
+
createSchema: (baseSchema) => baseSchema.extend({
|
541
|
+
buckets: _zod2.default.record(
|
542
|
+
bucketTypeSchema,
|
543
|
+
bucketValueSchemaV1_6
|
544
|
+
).default({})
|
545
|
+
}),
|
546
|
+
createDefaultValue: (baseDefaultValue) => ({
|
547
|
+
...baseDefaultValue,
|
548
|
+
version: 1.6
|
549
|
+
}),
|
550
|
+
createUpgrader: (oldConfig) => ({
|
551
|
+
...oldConfig,
|
552
|
+
version: 1.6
|
553
|
+
})
|
554
|
+
});
|
555
|
+
var LATEST_CONFIG_DEFINITION = configV1_6Definition;
|
535
556
|
function parseI18nConfig(rawConfig) {
|
536
557
|
try {
|
537
558
|
const result = LATEST_CONFIG_DEFINITION.parse(rawConfig);
|
@@ -566,4 +587,7 @@ var defaultConfig = LATEST_CONFIG_DEFINITION.defaultValue;
|
|
566
587
|
|
567
588
|
|
568
589
|
|
569
|
-
|
590
|
+
|
591
|
+
|
592
|
+
|
593
|
+
exports.LATEST_CONFIG_DEFINITION = LATEST_CONFIG_DEFINITION; exports.bucketItemSchema = bucketItemSchema; exports.bucketTypeSchema = bucketTypeSchema; exports.bucketTypes = bucketTypes; exports.bucketValueSchemaV1_3 = bucketValueSchemaV1_3; exports.bucketValueSchemaV1_6 = bucketValueSchemaV1_6; exports.configV0Definition = configV0Definition; exports.configV1Definition = configV1Definition; exports.configV1_1Definition = configV1_1Definition; exports.configV1_2Definition = configV1_2Definition; exports.configV1_3Definition = configV1_3Definition; exports.configV1_4Definition = configV1_4Definition; exports.configV1_5Definition = configV1_5Definition; exports.configV1_6Definition = configV1_6Definition; exports.defaultConfig = defaultConfig; exports.getLocaleCodeDelimiter = getLocaleCodeDelimiter; exports.localeCodeSchema = localeCodeSchema; exports.localeCodes = localeCodes; exports.localeCodesFull = localeCodesFull; exports.localeCodesFullExplicitRegion = localeCodesFullExplicitRegion; exports.localeCodesFullUnderscore = localeCodesFullUnderscore; exports.localeCodesShort = localeCodesShort; exports.localeSchema = localeSchema; exports.normalizeLocale = normalizeLocale; exports.parseI18nConfig = parseI18nConfig; exports.resolveLocaleCode = resolveLocaleCode; exports.resolveOverriddenLocale = resolveOverriddenLocale;
|
package/build/index.d.cts
CHANGED
@@ -114,8 +114,8 @@ declare const resolveOverriddenLocale: (locale: string, delimiter?: LocaleDelimi
|
|
114
114
|
*/
|
115
115
|
declare function normalizeLocale(locale: string): string;
|
116
116
|
|
117
|
-
declare const bucketTypes: readonly ["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"];
|
118
|
-
declare const bucketTypeSchema: Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>;
|
117
|
+
declare const bucketTypes: readonly ["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"];
|
118
|
+
declare const bucketTypeSchema: Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>;
|
119
119
|
|
120
120
|
declare const localeSchema: Z.ZodObject<{
|
121
121
|
source: Z.ZodEffects<Z.ZodString, string, string>;
|
@@ -148,7 +148,7 @@ declare const configV1Definition: ConfigDefinition<Z.objectUtil.extendShape<{
|
|
148
148
|
source: string;
|
149
149
|
targets: string[];
|
150
150
|
}>;
|
151
|
-
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
151
|
+
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
152
152
|
}>, Z.ZodRawShape>;
|
153
153
|
declare const configV1_1Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
154
154
|
version: Z.ZodDefault<Z.ZodNumber>;
|
@@ -163,9 +163,9 @@ declare const configV1_1Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
163
163
|
source: string;
|
164
164
|
targets: string[];
|
165
165
|
}>;
|
166
|
-
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
166
|
+
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
167
167
|
}>, {
|
168
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
168
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
169
169
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
170
170
|
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
171
171
|
}, "strip", Z.ZodTypeAny, {
|
@@ -189,9 +189,9 @@ declare const configV1_2Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
189
189
|
source: string;
|
190
190
|
targets: string[];
|
191
191
|
}>;
|
192
|
-
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
192
|
+
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
193
193
|
}>, {
|
194
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
194
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
195
195
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
196
196
|
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
197
197
|
}, "strip", Z.ZodTypeAny, {
|
@@ -228,6 +228,49 @@ declare const bucketItemSchema: Z.ZodObject<{
|
|
228
228
|
delimiter?: "-" | "_" | null | undefined;
|
229
229
|
}>;
|
230
230
|
type BucketItem = Z.infer<typeof bucketItemSchema>;
|
231
|
+
declare const bucketValueSchemaV1_3: Z.ZodObject<{
|
232
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
233
|
+
path: Z.ZodString;
|
234
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
235
|
+
}, "strip", Z.ZodTypeAny, {
|
236
|
+
path: string;
|
237
|
+
delimiter?: "-" | "_" | null | undefined;
|
238
|
+
}, {
|
239
|
+
path: string;
|
240
|
+
delimiter?: "-" | "_" | null | undefined;
|
241
|
+
}>]>, "many">>;
|
242
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
243
|
+
path: Z.ZodString;
|
244
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
245
|
+
}, "strip", Z.ZodTypeAny, {
|
246
|
+
path: string;
|
247
|
+
delimiter?: "-" | "_" | null | undefined;
|
248
|
+
}, {
|
249
|
+
path: string;
|
250
|
+
delimiter?: "-" | "_" | null | undefined;
|
251
|
+
}>]>, "many">>>;
|
252
|
+
injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
|
253
|
+
}, "strip", Z.ZodTypeAny, {
|
254
|
+
include: (string | {
|
255
|
+
path: string;
|
256
|
+
delimiter?: "-" | "_" | null | undefined;
|
257
|
+
})[];
|
258
|
+
exclude?: (string | {
|
259
|
+
path: string;
|
260
|
+
delimiter?: "-" | "_" | null | undefined;
|
261
|
+
})[] | undefined;
|
262
|
+
injectLocale?: string[] | undefined;
|
263
|
+
}, {
|
264
|
+
exclude?: (string | {
|
265
|
+
path: string;
|
266
|
+
delimiter?: "-" | "_" | null | undefined;
|
267
|
+
})[] | undefined;
|
268
|
+
include?: (string | {
|
269
|
+
path: string;
|
270
|
+
delimiter?: "-" | "_" | null | undefined;
|
271
|
+
})[] | undefined;
|
272
|
+
injectLocale?: string[] | undefined;
|
273
|
+
}>;
|
231
274
|
declare const configV1_3Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
232
275
|
version: Z.ZodDefault<Z.ZodNumber>;
|
233
276
|
}, {
|
@@ -241,9 +284,9 @@ declare const configV1_3Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
241
284
|
source: string;
|
242
285
|
targets: string[];
|
243
286
|
}>;
|
244
|
-
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
287
|
+
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
245
288
|
}>, {
|
246
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
289
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
247
290
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
248
291
|
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
249
292
|
}, "strip", Z.ZodTypeAny, {
|
@@ -269,7 +312,7 @@ declare const configV1_3Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
269
312
|
extraSource?: string | undefined;
|
270
313
|
}>;
|
271
314
|
}>, {
|
272
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
315
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
273
316
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
274
317
|
path: Z.ZodString;
|
275
318
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
@@ -326,9 +369,9 @@ declare const configV1_4Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
326
369
|
source: string;
|
327
370
|
targets: string[];
|
328
371
|
}>;
|
329
|
-
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
372
|
+
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
330
373
|
}>, {
|
331
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
374
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
332
375
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
333
376
|
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
334
377
|
}, "strip", Z.ZodTypeAny, {
|
@@ -354,7 +397,7 @@ declare const configV1_4Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
354
397
|
extraSource?: string | undefined;
|
355
398
|
}>;
|
356
399
|
}>, {
|
357
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
400
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
358
401
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
359
402
|
path: Z.ZodString;
|
360
403
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
@@ -413,9 +456,180 @@ declare const configV1_5Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
413
456
|
source: string;
|
414
457
|
targets: string[];
|
415
458
|
}>;
|
416
|
-
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
459
|
+
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
460
|
+
}>, {
|
461
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
462
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
463
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
464
|
+
}, "strip", Z.ZodTypeAny, {
|
465
|
+
include: string[];
|
466
|
+
exclude?: string[] | undefined;
|
467
|
+
}, {
|
468
|
+
exclude?: string[] | undefined;
|
469
|
+
include?: string[] | undefined;
|
470
|
+
}>>>;
|
471
|
+
}>, {
|
472
|
+
locale: Z.ZodObject<Z.objectUtil.extendShape<{
|
473
|
+
source: Z.ZodEffects<Z.ZodString, string, string>;
|
474
|
+
targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
|
475
|
+
}, {
|
476
|
+
extraSource: Z.ZodOptional<Z.ZodEffects<Z.ZodString, string, string>>;
|
477
|
+
}>, "strip", Z.ZodTypeAny, {
|
478
|
+
source: string;
|
479
|
+
targets: string[];
|
480
|
+
extraSource?: string | undefined;
|
481
|
+
}, {
|
482
|
+
source: string;
|
483
|
+
targets: string[];
|
484
|
+
extraSource?: string | undefined;
|
485
|
+
}>;
|
486
|
+
}>, {
|
487
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
488
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
489
|
+
path: Z.ZodString;
|
490
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
491
|
+
}, "strip", Z.ZodTypeAny, {
|
492
|
+
path: string;
|
493
|
+
delimiter?: "-" | "_" | null | undefined;
|
494
|
+
}, {
|
495
|
+
path: string;
|
496
|
+
delimiter?: "-" | "_" | null | undefined;
|
497
|
+
}>]>, "many">>;
|
498
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
499
|
+
path: Z.ZodString;
|
500
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
501
|
+
}, "strip", Z.ZodTypeAny, {
|
502
|
+
path: string;
|
503
|
+
delimiter?: "-" | "_" | null | undefined;
|
504
|
+
}, {
|
505
|
+
path: string;
|
506
|
+
delimiter?: "-" | "_" | null | undefined;
|
507
|
+
}>]>, "many">>>;
|
508
|
+
injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
|
509
|
+
}, "strip", Z.ZodTypeAny, {
|
510
|
+
include: (string | {
|
511
|
+
path: string;
|
512
|
+
delimiter?: "-" | "_" | null | undefined;
|
513
|
+
})[];
|
514
|
+
exclude?: (string | {
|
515
|
+
path: string;
|
516
|
+
delimiter?: "-" | "_" | null | undefined;
|
517
|
+
})[] | undefined;
|
518
|
+
injectLocale?: string[] | undefined;
|
519
|
+
}, {
|
520
|
+
exclude?: (string | {
|
521
|
+
path: string;
|
522
|
+
delimiter?: "-" | "_" | null | undefined;
|
523
|
+
})[] | undefined;
|
524
|
+
include?: (string | {
|
525
|
+
path: string;
|
526
|
+
delimiter?: "-" | "_" | null | undefined;
|
527
|
+
})[] | undefined;
|
528
|
+
injectLocale?: string[] | undefined;
|
529
|
+
}>>>;
|
530
|
+
}>, {
|
531
|
+
$schema: Z.ZodDefault<Z.ZodString>;
|
532
|
+
}>, {
|
533
|
+
provider: Z.ZodOptional<Z.ZodDefault<Z.ZodUnion<[Z.ZodObject<Z.objectUtil.extendShape<{
|
534
|
+
id: Z.ZodString;
|
535
|
+
model: Z.ZodString;
|
536
|
+
prompt: Z.ZodString;
|
537
|
+
baseUrl: Z.ZodOptional<Z.ZodString>;
|
538
|
+
}, {
|
539
|
+
id: Z.ZodLiteral<"lingo">;
|
540
|
+
model: Z.ZodLiteral<"best">;
|
541
|
+
}>, "strip", Z.ZodTypeAny, {
|
542
|
+
id: "lingo";
|
543
|
+
model: "best";
|
544
|
+
prompt: string;
|
545
|
+
baseUrl?: string | undefined;
|
546
|
+
}, {
|
547
|
+
id: "lingo";
|
548
|
+
model: "best";
|
549
|
+
prompt: string;
|
550
|
+
baseUrl?: string | undefined;
|
551
|
+
}>, Z.ZodObject<Z.objectUtil.extendShape<{
|
552
|
+
id: Z.ZodString;
|
553
|
+
model: Z.ZodString;
|
554
|
+
prompt: Z.ZodString;
|
555
|
+
baseUrl: Z.ZodOptional<Z.ZodString>;
|
556
|
+
}, {
|
557
|
+
id: Z.ZodEnum<["openai", "anthropic"]>;
|
558
|
+
}>, "strip", Z.ZodTypeAny, {
|
559
|
+
id: "openai" | "anthropic";
|
560
|
+
model: string;
|
561
|
+
prompt: string;
|
562
|
+
baseUrl?: string | undefined;
|
563
|
+
}, {
|
564
|
+
id: "openai" | "anthropic";
|
565
|
+
model: string;
|
566
|
+
prompt: string;
|
567
|
+
baseUrl?: string | undefined;
|
568
|
+
}>]>>>;
|
569
|
+
}>, Z.ZodRawShape>;
|
570
|
+
declare const bucketValueSchemaV1_6: Z.ZodObject<Z.objectUtil.extendShape<{
|
571
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
572
|
+
path: Z.ZodString;
|
573
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
574
|
+
}, "strip", Z.ZodTypeAny, {
|
575
|
+
path: string;
|
576
|
+
delimiter?: "-" | "_" | null | undefined;
|
577
|
+
}, {
|
578
|
+
path: string;
|
579
|
+
delimiter?: "-" | "_" | null | undefined;
|
580
|
+
}>]>, "many">>;
|
581
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
582
|
+
path: Z.ZodString;
|
583
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
584
|
+
}, "strip", Z.ZodTypeAny, {
|
585
|
+
path: string;
|
586
|
+
delimiter?: "-" | "_" | null | undefined;
|
587
|
+
}, {
|
588
|
+
path: string;
|
589
|
+
delimiter?: "-" | "_" | null | undefined;
|
590
|
+
}>]>, "many">>>;
|
591
|
+
injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
|
592
|
+
}, {
|
593
|
+
lockedKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
594
|
+
}>, "strip", Z.ZodTypeAny, {
|
595
|
+
include: (string | {
|
596
|
+
path: string;
|
597
|
+
delimiter?: "-" | "_" | null | undefined;
|
598
|
+
})[];
|
599
|
+
exclude?: (string | {
|
600
|
+
path: string;
|
601
|
+
delimiter?: "-" | "_" | null | undefined;
|
602
|
+
})[] | undefined;
|
603
|
+
injectLocale?: string[] | undefined;
|
604
|
+
lockedKeys?: string[] | undefined;
|
605
|
+
}, {
|
606
|
+
exclude?: (string | {
|
607
|
+
path: string;
|
608
|
+
delimiter?: "-" | "_" | null | undefined;
|
609
|
+
})[] | undefined;
|
610
|
+
include?: (string | {
|
611
|
+
path: string;
|
612
|
+
delimiter?: "-" | "_" | null | undefined;
|
613
|
+
})[] | undefined;
|
614
|
+
injectLocale?: string[] | undefined;
|
615
|
+
lockedKeys?: string[] | undefined;
|
616
|
+
}>;
|
617
|
+
declare const configV1_6Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
618
|
+
version: Z.ZodDefault<Z.ZodNumber>;
|
619
|
+
}, {
|
620
|
+
locale: Z.ZodObject<{
|
621
|
+
source: Z.ZodEffects<Z.ZodString, string, string>;
|
622
|
+
targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
|
623
|
+
}, "strip", Z.ZodTypeAny, {
|
624
|
+
source: string;
|
625
|
+
targets: string[];
|
626
|
+
}, {
|
627
|
+
source: string;
|
628
|
+
targets: string[];
|
629
|
+
}>;
|
630
|
+
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
417
631
|
}>, {
|
418
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
632
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
419
633
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
420
634
|
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
421
635
|
}, "strip", Z.ZodTypeAny, {
|
@@ -441,7 +655,7 @@ declare const configV1_5Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
441
655
|
extraSource?: string | undefined;
|
442
656
|
}>;
|
443
657
|
}>, {
|
444
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
658
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
445
659
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
446
660
|
path: Z.ZodString;
|
447
661
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
@@ -523,8 +737,56 @@ declare const configV1_5Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
523
737
|
prompt: string;
|
524
738
|
baseUrl?: string | undefined;
|
525
739
|
}>]>>>;
|
740
|
+
}>, {
|
741
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<Z.objectUtil.extendShape<{
|
742
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
743
|
+
path: Z.ZodString;
|
744
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
745
|
+
}, "strip", Z.ZodTypeAny, {
|
746
|
+
path: string;
|
747
|
+
delimiter?: "-" | "_" | null | undefined;
|
748
|
+
}, {
|
749
|
+
path: string;
|
750
|
+
delimiter?: "-" | "_" | null | undefined;
|
751
|
+
}>]>, "many">>;
|
752
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
753
|
+
path: Z.ZodString;
|
754
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
755
|
+
}, "strip", Z.ZodTypeAny, {
|
756
|
+
path: string;
|
757
|
+
delimiter?: "-" | "_" | null | undefined;
|
758
|
+
}, {
|
759
|
+
path: string;
|
760
|
+
delimiter?: "-" | "_" | null | undefined;
|
761
|
+
}>]>, "many">>>;
|
762
|
+
injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
|
763
|
+
}, {
|
764
|
+
lockedKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
765
|
+
}>, "strip", Z.ZodTypeAny, {
|
766
|
+
include: (string | {
|
767
|
+
path: string;
|
768
|
+
delimiter?: "-" | "_" | null | undefined;
|
769
|
+
})[];
|
770
|
+
exclude?: (string | {
|
771
|
+
path: string;
|
772
|
+
delimiter?: "-" | "_" | null | undefined;
|
773
|
+
})[] | undefined;
|
774
|
+
injectLocale?: string[] | undefined;
|
775
|
+
lockedKeys?: string[] | undefined;
|
776
|
+
}, {
|
777
|
+
exclude?: (string | {
|
778
|
+
path: string;
|
779
|
+
delimiter?: "-" | "_" | null | undefined;
|
780
|
+
})[] | undefined;
|
781
|
+
include?: (string | {
|
782
|
+
path: string;
|
783
|
+
delimiter?: "-" | "_" | null | undefined;
|
784
|
+
})[] | undefined;
|
785
|
+
injectLocale?: string[] | undefined;
|
786
|
+
lockedKeys?: string[] | undefined;
|
787
|
+
}>>>;
|
526
788
|
}>, Z.ZodRawShape>;
|
527
|
-
declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
789
|
+
declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
528
790
|
version: Z.ZodDefault<Z.ZodNumber>;
|
529
791
|
}, {
|
530
792
|
locale: Z.ZodObject<{
|
@@ -537,9 +799,9 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShap
|
|
537
799
|
source: string;
|
538
800
|
targets: string[];
|
539
801
|
}>;
|
540
|
-
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
802
|
+
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
541
803
|
}>, {
|
542
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
804
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
543
805
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
544
806
|
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
545
807
|
}, "strip", Z.ZodTypeAny, {
|
@@ -565,7 +827,7 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShap
|
|
565
827
|
extraSource?: string | undefined;
|
566
828
|
}>;
|
567
829
|
}>, {
|
568
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
830
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
569
831
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
570
832
|
path: Z.ZodString;
|
571
833
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
@@ -647,6 +909,54 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShap
|
|
647
909
|
prompt: string;
|
648
910
|
baseUrl?: string | undefined;
|
649
911
|
}>]>>>;
|
912
|
+
}>, {
|
913
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<Z.objectUtil.extendShape<{
|
914
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
915
|
+
path: Z.ZodString;
|
916
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
917
|
+
}, "strip", Z.ZodTypeAny, {
|
918
|
+
path: string;
|
919
|
+
delimiter?: "-" | "_" | null | undefined;
|
920
|
+
}, {
|
921
|
+
path: string;
|
922
|
+
delimiter?: "-" | "_" | null | undefined;
|
923
|
+
}>]>, "many">>;
|
924
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
925
|
+
path: Z.ZodString;
|
926
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
927
|
+
}, "strip", Z.ZodTypeAny, {
|
928
|
+
path: string;
|
929
|
+
delimiter?: "-" | "_" | null | undefined;
|
930
|
+
}, {
|
931
|
+
path: string;
|
932
|
+
delimiter?: "-" | "_" | null | undefined;
|
933
|
+
}>]>, "many">>>;
|
934
|
+
injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
|
935
|
+
}, {
|
936
|
+
lockedKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
937
|
+
}>, "strip", Z.ZodTypeAny, {
|
938
|
+
include: (string | {
|
939
|
+
path: string;
|
940
|
+
delimiter?: "-" | "_" | null | undefined;
|
941
|
+
})[];
|
942
|
+
exclude?: (string | {
|
943
|
+
path: string;
|
944
|
+
delimiter?: "-" | "_" | null | undefined;
|
945
|
+
})[] | undefined;
|
946
|
+
injectLocale?: string[] | undefined;
|
947
|
+
lockedKeys?: string[] | undefined;
|
948
|
+
}, {
|
949
|
+
exclude?: (string | {
|
950
|
+
path: string;
|
951
|
+
delimiter?: "-" | "_" | null | undefined;
|
952
|
+
})[] | undefined;
|
953
|
+
include?: (string | {
|
954
|
+
path: string;
|
955
|
+
delimiter?: "-" | "_" | null | undefined;
|
956
|
+
})[] | undefined;
|
957
|
+
injectLocale?: string[] | undefined;
|
958
|
+
lockedKeys?: string[] | undefined;
|
959
|
+
}>>>;
|
650
960
|
}>, Z.ZodRawShape>;
|
651
961
|
type I18nConfig = Z.infer<(typeof LATEST_CONFIG_DEFINITION)["schema"]>;
|
652
962
|
declare function parseI18nConfig(rawConfig: unknown): {
|
@@ -656,7 +966,7 @@ declare function parseI18nConfig(rawConfig: unknown): {
|
|
656
966
|
targets: string[];
|
657
967
|
extraSource?: string | undefined;
|
658
968
|
};
|
659
|
-
buckets: Partial<Record<"android" | "csv" | "flutter" | "html" | "json" | "markdown" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json", {
|
969
|
+
buckets: Partial<Record<"android" | "csv" | "flutter" | "html" | "json" | "markdown" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json", {
|
660
970
|
include: (string | {
|
661
971
|
path: string;
|
662
972
|
delimiter?: "-" | "_" | null | undefined;
|
@@ -666,6 +976,7 @@ declare function parseI18nConfig(rawConfig: unknown): {
|
|
666
976
|
delimiter?: "-" | "_" | null | undefined;
|
667
977
|
})[] | undefined;
|
668
978
|
injectLocale?: string[] | undefined;
|
979
|
+
lockedKeys?: string[] | undefined;
|
669
980
|
}>>;
|
670
981
|
$schema: string;
|
671
982
|
provider?: {
|
@@ -687,7 +998,7 @@ declare const defaultConfig: {
|
|
687
998
|
targets: string[];
|
688
999
|
extraSource?: string | undefined;
|
689
1000
|
};
|
690
|
-
buckets: Partial<Record<"android" | "csv" | "flutter" | "html" | "json" | "markdown" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json", {
|
1001
|
+
buckets: Partial<Record<"android" | "csv" | "flutter" | "html" | "json" | "markdown" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json", {
|
691
1002
|
include: (string | {
|
692
1003
|
path: string;
|
693
1004
|
delimiter?: "-" | "_" | null | undefined;
|
@@ -697,6 +1008,7 @@ declare const defaultConfig: {
|
|
697
1008
|
delimiter?: "-" | "_" | null | undefined;
|
698
1009
|
})[] | undefined;
|
699
1010
|
injectLocale?: string[] | undefined;
|
1011
|
+
lockedKeys?: string[] | undefined;
|
700
1012
|
}>>;
|
701
1013
|
$schema: string;
|
702
1014
|
provider?: {
|
@@ -712,4 +1024,4 @@ declare const defaultConfig: {
|
|
712
1024
|
} | undefined;
|
713
1025
|
};
|
714
1026
|
|
715
|
-
export { type BucketItem, type I18nConfig, LATEST_CONFIG_DEFINITION, type LocaleCode, type LocaleCodeFull, type LocaleCodeShort, type LocaleDelimiter, bucketItemSchema, bucketTypeSchema, bucketTypes, configV0Definition, configV1Definition, configV1_1Definition, configV1_2Definition, configV1_3Definition, configV1_4Definition, configV1_5Definition, defaultConfig, getLocaleCodeDelimiter, localeCodeSchema, localeCodes, localeCodesFull, localeCodesFullExplicitRegion, localeCodesFullUnderscore, localeCodesShort, localeSchema, normalizeLocale, parseI18nConfig, resolveLocaleCode, resolveOverriddenLocale };
|
1027
|
+
export { type BucketItem, type I18nConfig, LATEST_CONFIG_DEFINITION, type LocaleCode, type LocaleCodeFull, type LocaleCodeShort, type LocaleDelimiter, bucketItemSchema, bucketTypeSchema, bucketTypes, bucketValueSchemaV1_3, bucketValueSchemaV1_6, configV0Definition, configV1Definition, configV1_1Definition, configV1_2Definition, configV1_3Definition, configV1_4Definition, configV1_5Definition, configV1_6Definition, defaultConfig, getLocaleCodeDelimiter, localeCodeSchema, localeCodes, localeCodesFull, localeCodesFullExplicitRegion, localeCodesFullUnderscore, localeCodesShort, localeSchema, normalizeLocale, parseI18nConfig, resolveLocaleCode, resolveOverriddenLocale };
|
package/build/index.d.ts
CHANGED
@@ -114,8 +114,8 @@ declare const resolveOverriddenLocale: (locale: string, delimiter?: LocaleDelimi
|
|
114
114
|
*/
|
115
115
|
declare function normalizeLocale(locale: string): string;
|
116
116
|
|
117
|
-
declare const bucketTypes: readonly ["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"];
|
118
|
-
declare const bucketTypeSchema: Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>;
|
117
|
+
declare const bucketTypes: readonly ["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"];
|
118
|
+
declare const bucketTypeSchema: Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>;
|
119
119
|
|
120
120
|
declare const localeSchema: Z.ZodObject<{
|
121
121
|
source: Z.ZodEffects<Z.ZodString, string, string>;
|
@@ -148,7 +148,7 @@ declare const configV1Definition: ConfigDefinition<Z.objectUtil.extendShape<{
|
|
148
148
|
source: string;
|
149
149
|
targets: string[];
|
150
150
|
}>;
|
151
|
-
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
151
|
+
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
152
152
|
}>, Z.ZodRawShape>;
|
153
153
|
declare const configV1_1Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
154
154
|
version: Z.ZodDefault<Z.ZodNumber>;
|
@@ -163,9 +163,9 @@ declare const configV1_1Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
163
163
|
source: string;
|
164
164
|
targets: string[];
|
165
165
|
}>;
|
166
|
-
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
166
|
+
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
167
167
|
}>, {
|
168
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
168
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
169
169
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
170
170
|
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
171
171
|
}, "strip", Z.ZodTypeAny, {
|
@@ -189,9 +189,9 @@ declare const configV1_2Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
189
189
|
source: string;
|
190
190
|
targets: string[];
|
191
191
|
}>;
|
192
|
-
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
192
|
+
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
193
193
|
}>, {
|
194
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
194
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
195
195
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
196
196
|
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
197
197
|
}, "strip", Z.ZodTypeAny, {
|
@@ -228,6 +228,49 @@ declare const bucketItemSchema: Z.ZodObject<{
|
|
228
228
|
delimiter?: "-" | "_" | null | undefined;
|
229
229
|
}>;
|
230
230
|
type BucketItem = Z.infer<typeof bucketItemSchema>;
|
231
|
+
declare const bucketValueSchemaV1_3: Z.ZodObject<{
|
232
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
233
|
+
path: Z.ZodString;
|
234
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
235
|
+
}, "strip", Z.ZodTypeAny, {
|
236
|
+
path: string;
|
237
|
+
delimiter?: "-" | "_" | null | undefined;
|
238
|
+
}, {
|
239
|
+
path: string;
|
240
|
+
delimiter?: "-" | "_" | null | undefined;
|
241
|
+
}>]>, "many">>;
|
242
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
243
|
+
path: Z.ZodString;
|
244
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
245
|
+
}, "strip", Z.ZodTypeAny, {
|
246
|
+
path: string;
|
247
|
+
delimiter?: "-" | "_" | null | undefined;
|
248
|
+
}, {
|
249
|
+
path: string;
|
250
|
+
delimiter?: "-" | "_" | null | undefined;
|
251
|
+
}>]>, "many">>>;
|
252
|
+
injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
|
253
|
+
}, "strip", Z.ZodTypeAny, {
|
254
|
+
include: (string | {
|
255
|
+
path: string;
|
256
|
+
delimiter?: "-" | "_" | null | undefined;
|
257
|
+
})[];
|
258
|
+
exclude?: (string | {
|
259
|
+
path: string;
|
260
|
+
delimiter?: "-" | "_" | null | undefined;
|
261
|
+
})[] | undefined;
|
262
|
+
injectLocale?: string[] | undefined;
|
263
|
+
}, {
|
264
|
+
exclude?: (string | {
|
265
|
+
path: string;
|
266
|
+
delimiter?: "-" | "_" | null | undefined;
|
267
|
+
})[] | undefined;
|
268
|
+
include?: (string | {
|
269
|
+
path: string;
|
270
|
+
delimiter?: "-" | "_" | null | undefined;
|
271
|
+
})[] | undefined;
|
272
|
+
injectLocale?: string[] | undefined;
|
273
|
+
}>;
|
231
274
|
declare const configV1_3Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
232
275
|
version: Z.ZodDefault<Z.ZodNumber>;
|
233
276
|
}, {
|
@@ -241,9 +284,9 @@ declare const configV1_3Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
241
284
|
source: string;
|
242
285
|
targets: string[];
|
243
286
|
}>;
|
244
|
-
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
287
|
+
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
245
288
|
}>, {
|
246
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
289
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
247
290
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
248
291
|
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
249
292
|
}, "strip", Z.ZodTypeAny, {
|
@@ -269,7 +312,7 @@ declare const configV1_3Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
269
312
|
extraSource?: string | undefined;
|
270
313
|
}>;
|
271
314
|
}>, {
|
272
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
315
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
273
316
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
274
317
|
path: Z.ZodString;
|
275
318
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
@@ -326,9 +369,9 @@ declare const configV1_4Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
326
369
|
source: string;
|
327
370
|
targets: string[];
|
328
371
|
}>;
|
329
|
-
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
372
|
+
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
330
373
|
}>, {
|
331
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
374
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
332
375
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
333
376
|
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
334
377
|
}, "strip", Z.ZodTypeAny, {
|
@@ -354,7 +397,7 @@ declare const configV1_4Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
354
397
|
extraSource?: string | undefined;
|
355
398
|
}>;
|
356
399
|
}>, {
|
357
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
400
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
358
401
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
359
402
|
path: Z.ZodString;
|
360
403
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
@@ -413,9 +456,180 @@ declare const configV1_5Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
413
456
|
source: string;
|
414
457
|
targets: string[];
|
415
458
|
}>;
|
416
|
-
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
459
|
+
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
460
|
+
}>, {
|
461
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
462
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
463
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
464
|
+
}, "strip", Z.ZodTypeAny, {
|
465
|
+
include: string[];
|
466
|
+
exclude?: string[] | undefined;
|
467
|
+
}, {
|
468
|
+
exclude?: string[] | undefined;
|
469
|
+
include?: string[] | undefined;
|
470
|
+
}>>>;
|
471
|
+
}>, {
|
472
|
+
locale: Z.ZodObject<Z.objectUtil.extendShape<{
|
473
|
+
source: Z.ZodEffects<Z.ZodString, string, string>;
|
474
|
+
targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
|
475
|
+
}, {
|
476
|
+
extraSource: Z.ZodOptional<Z.ZodEffects<Z.ZodString, string, string>>;
|
477
|
+
}>, "strip", Z.ZodTypeAny, {
|
478
|
+
source: string;
|
479
|
+
targets: string[];
|
480
|
+
extraSource?: string | undefined;
|
481
|
+
}, {
|
482
|
+
source: string;
|
483
|
+
targets: string[];
|
484
|
+
extraSource?: string | undefined;
|
485
|
+
}>;
|
486
|
+
}>, {
|
487
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
488
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
489
|
+
path: Z.ZodString;
|
490
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
491
|
+
}, "strip", Z.ZodTypeAny, {
|
492
|
+
path: string;
|
493
|
+
delimiter?: "-" | "_" | null | undefined;
|
494
|
+
}, {
|
495
|
+
path: string;
|
496
|
+
delimiter?: "-" | "_" | null | undefined;
|
497
|
+
}>]>, "many">>;
|
498
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
499
|
+
path: Z.ZodString;
|
500
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
501
|
+
}, "strip", Z.ZodTypeAny, {
|
502
|
+
path: string;
|
503
|
+
delimiter?: "-" | "_" | null | undefined;
|
504
|
+
}, {
|
505
|
+
path: string;
|
506
|
+
delimiter?: "-" | "_" | null | undefined;
|
507
|
+
}>]>, "many">>>;
|
508
|
+
injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
|
509
|
+
}, "strip", Z.ZodTypeAny, {
|
510
|
+
include: (string | {
|
511
|
+
path: string;
|
512
|
+
delimiter?: "-" | "_" | null | undefined;
|
513
|
+
})[];
|
514
|
+
exclude?: (string | {
|
515
|
+
path: string;
|
516
|
+
delimiter?: "-" | "_" | null | undefined;
|
517
|
+
})[] | undefined;
|
518
|
+
injectLocale?: string[] | undefined;
|
519
|
+
}, {
|
520
|
+
exclude?: (string | {
|
521
|
+
path: string;
|
522
|
+
delimiter?: "-" | "_" | null | undefined;
|
523
|
+
})[] | undefined;
|
524
|
+
include?: (string | {
|
525
|
+
path: string;
|
526
|
+
delimiter?: "-" | "_" | null | undefined;
|
527
|
+
})[] | undefined;
|
528
|
+
injectLocale?: string[] | undefined;
|
529
|
+
}>>>;
|
530
|
+
}>, {
|
531
|
+
$schema: Z.ZodDefault<Z.ZodString>;
|
532
|
+
}>, {
|
533
|
+
provider: Z.ZodOptional<Z.ZodDefault<Z.ZodUnion<[Z.ZodObject<Z.objectUtil.extendShape<{
|
534
|
+
id: Z.ZodString;
|
535
|
+
model: Z.ZodString;
|
536
|
+
prompt: Z.ZodString;
|
537
|
+
baseUrl: Z.ZodOptional<Z.ZodString>;
|
538
|
+
}, {
|
539
|
+
id: Z.ZodLiteral<"lingo">;
|
540
|
+
model: Z.ZodLiteral<"best">;
|
541
|
+
}>, "strip", Z.ZodTypeAny, {
|
542
|
+
id: "lingo";
|
543
|
+
model: "best";
|
544
|
+
prompt: string;
|
545
|
+
baseUrl?: string | undefined;
|
546
|
+
}, {
|
547
|
+
id: "lingo";
|
548
|
+
model: "best";
|
549
|
+
prompt: string;
|
550
|
+
baseUrl?: string | undefined;
|
551
|
+
}>, Z.ZodObject<Z.objectUtil.extendShape<{
|
552
|
+
id: Z.ZodString;
|
553
|
+
model: Z.ZodString;
|
554
|
+
prompt: Z.ZodString;
|
555
|
+
baseUrl: Z.ZodOptional<Z.ZodString>;
|
556
|
+
}, {
|
557
|
+
id: Z.ZodEnum<["openai", "anthropic"]>;
|
558
|
+
}>, "strip", Z.ZodTypeAny, {
|
559
|
+
id: "openai" | "anthropic";
|
560
|
+
model: string;
|
561
|
+
prompt: string;
|
562
|
+
baseUrl?: string | undefined;
|
563
|
+
}, {
|
564
|
+
id: "openai" | "anthropic";
|
565
|
+
model: string;
|
566
|
+
prompt: string;
|
567
|
+
baseUrl?: string | undefined;
|
568
|
+
}>]>>>;
|
569
|
+
}>, Z.ZodRawShape>;
|
570
|
+
declare const bucketValueSchemaV1_6: Z.ZodObject<Z.objectUtil.extendShape<{
|
571
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
572
|
+
path: Z.ZodString;
|
573
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
574
|
+
}, "strip", Z.ZodTypeAny, {
|
575
|
+
path: string;
|
576
|
+
delimiter?: "-" | "_" | null | undefined;
|
577
|
+
}, {
|
578
|
+
path: string;
|
579
|
+
delimiter?: "-" | "_" | null | undefined;
|
580
|
+
}>]>, "many">>;
|
581
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
582
|
+
path: Z.ZodString;
|
583
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
584
|
+
}, "strip", Z.ZodTypeAny, {
|
585
|
+
path: string;
|
586
|
+
delimiter?: "-" | "_" | null | undefined;
|
587
|
+
}, {
|
588
|
+
path: string;
|
589
|
+
delimiter?: "-" | "_" | null | undefined;
|
590
|
+
}>]>, "many">>>;
|
591
|
+
injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
|
592
|
+
}, {
|
593
|
+
lockedKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
594
|
+
}>, "strip", Z.ZodTypeAny, {
|
595
|
+
include: (string | {
|
596
|
+
path: string;
|
597
|
+
delimiter?: "-" | "_" | null | undefined;
|
598
|
+
})[];
|
599
|
+
exclude?: (string | {
|
600
|
+
path: string;
|
601
|
+
delimiter?: "-" | "_" | null | undefined;
|
602
|
+
})[] | undefined;
|
603
|
+
injectLocale?: string[] | undefined;
|
604
|
+
lockedKeys?: string[] | undefined;
|
605
|
+
}, {
|
606
|
+
exclude?: (string | {
|
607
|
+
path: string;
|
608
|
+
delimiter?: "-" | "_" | null | undefined;
|
609
|
+
})[] | undefined;
|
610
|
+
include?: (string | {
|
611
|
+
path: string;
|
612
|
+
delimiter?: "-" | "_" | null | undefined;
|
613
|
+
})[] | undefined;
|
614
|
+
injectLocale?: string[] | undefined;
|
615
|
+
lockedKeys?: string[] | undefined;
|
616
|
+
}>;
|
617
|
+
declare const configV1_6Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
618
|
+
version: Z.ZodDefault<Z.ZodNumber>;
|
619
|
+
}, {
|
620
|
+
locale: Z.ZodObject<{
|
621
|
+
source: Z.ZodEffects<Z.ZodString, string, string>;
|
622
|
+
targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
|
623
|
+
}, "strip", Z.ZodTypeAny, {
|
624
|
+
source: string;
|
625
|
+
targets: string[];
|
626
|
+
}, {
|
627
|
+
source: string;
|
628
|
+
targets: string[];
|
629
|
+
}>;
|
630
|
+
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
417
631
|
}>, {
|
418
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
632
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
419
633
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
420
634
|
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
421
635
|
}, "strip", Z.ZodTypeAny, {
|
@@ -441,7 +655,7 @@ declare const configV1_5Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
441
655
|
extraSource?: string | undefined;
|
442
656
|
}>;
|
443
657
|
}>, {
|
444
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
658
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
445
659
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
446
660
|
path: Z.ZodString;
|
447
661
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
@@ -523,8 +737,56 @@ declare const configV1_5Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
523
737
|
prompt: string;
|
524
738
|
baseUrl?: string | undefined;
|
525
739
|
}>]>>>;
|
740
|
+
}>, {
|
741
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<Z.objectUtil.extendShape<{
|
742
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
743
|
+
path: Z.ZodString;
|
744
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
745
|
+
}, "strip", Z.ZodTypeAny, {
|
746
|
+
path: string;
|
747
|
+
delimiter?: "-" | "_" | null | undefined;
|
748
|
+
}, {
|
749
|
+
path: string;
|
750
|
+
delimiter?: "-" | "_" | null | undefined;
|
751
|
+
}>]>, "many">>;
|
752
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
753
|
+
path: Z.ZodString;
|
754
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
755
|
+
}, "strip", Z.ZodTypeAny, {
|
756
|
+
path: string;
|
757
|
+
delimiter?: "-" | "_" | null | undefined;
|
758
|
+
}, {
|
759
|
+
path: string;
|
760
|
+
delimiter?: "-" | "_" | null | undefined;
|
761
|
+
}>]>, "many">>>;
|
762
|
+
injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
|
763
|
+
}, {
|
764
|
+
lockedKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
765
|
+
}>, "strip", Z.ZodTypeAny, {
|
766
|
+
include: (string | {
|
767
|
+
path: string;
|
768
|
+
delimiter?: "-" | "_" | null | undefined;
|
769
|
+
})[];
|
770
|
+
exclude?: (string | {
|
771
|
+
path: string;
|
772
|
+
delimiter?: "-" | "_" | null | undefined;
|
773
|
+
})[] | undefined;
|
774
|
+
injectLocale?: string[] | undefined;
|
775
|
+
lockedKeys?: string[] | undefined;
|
776
|
+
}, {
|
777
|
+
exclude?: (string | {
|
778
|
+
path: string;
|
779
|
+
delimiter?: "-" | "_" | null | undefined;
|
780
|
+
})[] | undefined;
|
781
|
+
include?: (string | {
|
782
|
+
path: string;
|
783
|
+
delimiter?: "-" | "_" | null | undefined;
|
784
|
+
})[] | undefined;
|
785
|
+
injectLocale?: string[] | undefined;
|
786
|
+
lockedKeys?: string[] | undefined;
|
787
|
+
}>>>;
|
526
788
|
}>, Z.ZodRawShape>;
|
527
|
-
declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
789
|
+
declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
528
790
|
version: Z.ZodDefault<Z.ZodNumber>;
|
529
791
|
}, {
|
530
792
|
locale: Z.ZodObject<{
|
@@ -537,9 +799,9 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShap
|
|
537
799
|
source: string;
|
538
800
|
targets: string[];
|
539
801
|
}>;
|
540
|
-
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
802
|
+
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>>>>;
|
541
803
|
}>, {
|
542
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
804
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
543
805
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
544
806
|
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
545
807
|
}, "strip", Z.ZodTypeAny, {
|
@@ -565,7 +827,7 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShap
|
|
565
827
|
extraSource?: string | undefined;
|
566
828
|
}>;
|
567
829
|
}>, {
|
568
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
830
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<{
|
569
831
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
570
832
|
path: Z.ZodString;
|
571
833
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
@@ -647,6 +909,54 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShap
|
|
647
909
|
prompt: string;
|
648
910
|
baseUrl?: string | undefined;
|
649
911
|
}>]>>>;
|
912
|
+
}>, {
|
913
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "flutter", "html", "json", "markdown", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json"]>, Z.ZodObject<Z.objectUtil.extendShape<{
|
914
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
915
|
+
path: Z.ZodString;
|
916
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
917
|
+
}, "strip", Z.ZodTypeAny, {
|
918
|
+
path: string;
|
919
|
+
delimiter?: "-" | "_" | null | undefined;
|
920
|
+
}, {
|
921
|
+
path: string;
|
922
|
+
delimiter?: "-" | "_" | null | undefined;
|
923
|
+
}>]>, "many">>;
|
924
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
925
|
+
path: Z.ZodString;
|
926
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
927
|
+
}, "strip", Z.ZodTypeAny, {
|
928
|
+
path: string;
|
929
|
+
delimiter?: "-" | "_" | null | undefined;
|
930
|
+
}, {
|
931
|
+
path: string;
|
932
|
+
delimiter?: "-" | "_" | null | undefined;
|
933
|
+
}>]>, "many">>>;
|
934
|
+
injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
|
935
|
+
}, {
|
936
|
+
lockedKeys: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
937
|
+
}>, "strip", Z.ZodTypeAny, {
|
938
|
+
include: (string | {
|
939
|
+
path: string;
|
940
|
+
delimiter?: "-" | "_" | null | undefined;
|
941
|
+
})[];
|
942
|
+
exclude?: (string | {
|
943
|
+
path: string;
|
944
|
+
delimiter?: "-" | "_" | null | undefined;
|
945
|
+
})[] | undefined;
|
946
|
+
injectLocale?: string[] | undefined;
|
947
|
+
lockedKeys?: string[] | undefined;
|
948
|
+
}, {
|
949
|
+
exclude?: (string | {
|
950
|
+
path: string;
|
951
|
+
delimiter?: "-" | "_" | null | undefined;
|
952
|
+
})[] | undefined;
|
953
|
+
include?: (string | {
|
954
|
+
path: string;
|
955
|
+
delimiter?: "-" | "_" | null | undefined;
|
956
|
+
})[] | undefined;
|
957
|
+
injectLocale?: string[] | undefined;
|
958
|
+
lockedKeys?: string[] | undefined;
|
959
|
+
}>>>;
|
650
960
|
}>, Z.ZodRawShape>;
|
651
961
|
type I18nConfig = Z.infer<(typeof LATEST_CONFIG_DEFINITION)["schema"]>;
|
652
962
|
declare function parseI18nConfig(rawConfig: unknown): {
|
@@ -656,7 +966,7 @@ declare function parseI18nConfig(rawConfig: unknown): {
|
|
656
966
|
targets: string[];
|
657
967
|
extraSource?: string | undefined;
|
658
968
|
};
|
659
|
-
buckets: Partial<Record<"android" | "csv" | "flutter" | "html" | "json" | "markdown" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json", {
|
969
|
+
buckets: Partial<Record<"android" | "csv" | "flutter" | "html" | "json" | "markdown" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json", {
|
660
970
|
include: (string | {
|
661
971
|
path: string;
|
662
972
|
delimiter?: "-" | "_" | null | undefined;
|
@@ -666,6 +976,7 @@ declare function parseI18nConfig(rawConfig: unknown): {
|
|
666
976
|
delimiter?: "-" | "_" | null | undefined;
|
667
977
|
})[] | undefined;
|
668
978
|
injectLocale?: string[] | undefined;
|
979
|
+
lockedKeys?: string[] | undefined;
|
669
980
|
}>>;
|
670
981
|
$schema: string;
|
671
982
|
provider?: {
|
@@ -687,7 +998,7 @@ declare const defaultConfig: {
|
|
687
998
|
targets: string[];
|
688
999
|
extraSource?: string | undefined;
|
689
1000
|
};
|
690
|
-
buckets: Partial<Record<"android" | "csv" | "flutter" | "html" | "json" | "markdown" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json", {
|
1001
|
+
buckets: Partial<Record<"android" | "csv" | "flutter" | "html" | "json" | "markdown" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json", {
|
691
1002
|
include: (string | {
|
692
1003
|
path: string;
|
693
1004
|
delimiter?: "-" | "_" | null | undefined;
|
@@ -697,6 +1008,7 @@ declare const defaultConfig: {
|
|
697
1008
|
delimiter?: "-" | "_" | null | undefined;
|
698
1009
|
})[] | undefined;
|
699
1010
|
injectLocale?: string[] | undefined;
|
1011
|
+
lockedKeys?: string[] | undefined;
|
700
1012
|
}>>;
|
701
1013
|
$schema: string;
|
702
1014
|
provider?: {
|
@@ -712,4 +1024,4 @@ declare const defaultConfig: {
|
|
712
1024
|
} | undefined;
|
713
1025
|
};
|
714
1026
|
|
715
|
-
export { type BucketItem, type I18nConfig, LATEST_CONFIG_DEFINITION, type LocaleCode, type LocaleCodeFull, type LocaleCodeShort, type LocaleDelimiter, bucketItemSchema, bucketTypeSchema, bucketTypes, configV0Definition, configV1Definition, configV1_1Definition, configV1_2Definition, configV1_3Definition, configV1_4Definition, configV1_5Definition, defaultConfig, getLocaleCodeDelimiter, localeCodeSchema, localeCodes, localeCodesFull, localeCodesFullExplicitRegion, localeCodesFullUnderscore, localeCodesShort, localeSchema, normalizeLocale, parseI18nConfig, resolveLocaleCode, resolveOverriddenLocale };
|
1027
|
+
export { type BucketItem, type I18nConfig, LATEST_CONFIG_DEFINITION, type LocaleCode, type LocaleCodeFull, type LocaleCodeShort, type LocaleDelimiter, bucketItemSchema, bucketTypeSchema, bucketTypes, bucketValueSchemaV1_3, bucketValueSchemaV1_6, configV0Definition, configV1Definition, configV1_1Definition, configV1_2Definition, configV1_3Definition, configV1_4Definition, configV1_5Definition, configV1_6Definition, defaultConfig, getLocaleCodeDelimiter, localeCodeSchema, localeCodes, localeCodesFull, localeCodesFullExplicitRegion, localeCodesFullUnderscore, localeCodesShort, localeSchema, normalizeLocale, parseI18nConfig, resolveLocaleCode, resolveOverriddenLocale };
|
package/build/index.mjs
CHANGED
@@ -315,6 +315,7 @@ var bucketTypes = [
|
|
315
315
|
"html",
|
316
316
|
"json",
|
317
317
|
"markdown",
|
318
|
+
"mdx",
|
318
319
|
"xcode-strings",
|
319
320
|
"xcode-stringsdict",
|
320
321
|
"xcode-xcstrings",
|
@@ -462,15 +463,16 @@ var bucketItemSchema = Z3.object({
|
|
462
463
|
path: Z3.string(),
|
463
464
|
delimiter: Z3.union([Z3.literal("-"), Z3.literal("_"), Z3.literal(null)]).optional()
|
464
465
|
});
|
466
|
+
var bucketValueSchemaV1_3 = Z3.object({
|
467
|
+
include: Z3.array(Z3.union([Z3.string(), bucketItemSchema])).default([]),
|
468
|
+
exclude: Z3.array(Z3.union([Z3.string(), bucketItemSchema])).default([]).optional(),
|
469
|
+
injectLocale: Z3.array(Z3.string()).optional()
|
470
|
+
});
|
465
471
|
var configV1_3Definition = extendConfigDefinition(configV1_2Definition, {
|
466
472
|
createSchema: (baseSchema) => baseSchema.extend({
|
467
473
|
buckets: Z3.record(
|
468
474
|
bucketTypeSchema,
|
469
|
-
|
470
|
-
include: Z3.array(Z3.union([Z3.string(), bucketItemSchema])).default([]),
|
471
|
-
exclude: Z3.array(Z3.union([Z3.string(), bucketItemSchema])).default([]).optional(),
|
472
|
-
injectLocale: Z3.array(Z3.string()).optional()
|
473
|
-
})
|
475
|
+
bucketValueSchemaV1_3
|
474
476
|
).default({})
|
475
477
|
}),
|
476
478
|
createDefaultValue: (baseDefaultValue) => ({
|
@@ -531,7 +533,26 @@ var configV1_5Definition = extendConfigDefinition(configV1_4Definition, {
|
|
531
533
|
version: 1.5
|
532
534
|
})
|
533
535
|
});
|
534
|
-
var
|
536
|
+
var bucketValueSchemaV1_6 = bucketValueSchemaV1_3.extend({
|
537
|
+
lockedKeys: Z3.array(Z3.string()).default([]).optional()
|
538
|
+
});
|
539
|
+
var configV1_6Definition = extendConfigDefinition(configV1_5Definition, {
|
540
|
+
createSchema: (baseSchema) => baseSchema.extend({
|
541
|
+
buckets: Z3.record(
|
542
|
+
bucketTypeSchema,
|
543
|
+
bucketValueSchemaV1_6
|
544
|
+
).default({})
|
545
|
+
}),
|
546
|
+
createDefaultValue: (baseDefaultValue) => ({
|
547
|
+
...baseDefaultValue,
|
548
|
+
version: 1.6
|
549
|
+
}),
|
550
|
+
createUpgrader: (oldConfig) => ({
|
551
|
+
...oldConfig,
|
552
|
+
version: 1.6
|
553
|
+
})
|
554
|
+
});
|
555
|
+
var LATEST_CONFIG_DEFINITION = configV1_6Definition;
|
535
556
|
function parseI18nConfig(rawConfig) {
|
536
557
|
try {
|
537
558
|
const result = LATEST_CONFIG_DEFINITION.parse(rawConfig);
|
@@ -546,6 +567,8 @@ export {
|
|
546
567
|
bucketItemSchema,
|
547
568
|
bucketTypeSchema,
|
548
569
|
bucketTypes,
|
570
|
+
bucketValueSchemaV1_3,
|
571
|
+
bucketValueSchemaV1_6,
|
549
572
|
configV0Definition,
|
550
573
|
configV1Definition,
|
551
574
|
configV1_1Definition,
|
@@ -553,6 +576,7 @@ export {
|
|
553
576
|
configV1_3Definition,
|
554
577
|
configV1_4Definition,
|
555
578
|
configV1_5Definition,
|
579
|
+
configV1_6Definition,
|
556
580
|
defaultConfig,
|
557
581
|
getLocaleCodeDelimiter,
|
558
582
|
localeCodeSchema,
|