@lingo.dev/_spec 0.41.0 → 0.43.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 +1 -0
- package/build/index.cjs +6 -1
- package/build/index.d.cts +16 -16
- package/build/index.d.ts +16 -16
- package/build/index.mjs +6 -1
- package/package.json +3 -2
package/build/i18n.schema.json
CHANGED
package/build/index.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/locales.ts
|
|
2
2
|
var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
|
|
3
|
+
var __locales = require('@lingo.dev/_locales');
|
|
3
4
|
var localeMap = {
|
|
4
5
|
// Urdu (Pakistan)
|
|
5
6
|
ur: ["ur-PK"],
|
|
@@ -299,7 +300,10 @@ var localeCodes = [
|
|
|
299
300
|
...localeCodesFullExplicitRegion
|
|
300
301
|
];
|
|
301
302
|
var localeCodeSchema = _zod2.default.string().refine(
|
|
302
|
-
(value) =>
|
|
303
|
+
(value) => {
|
|
304
|
+
const normalized = normalizeLocale(value);
|
|
305
|
+
return __locales.isValidLocale.call(void 0, normalized);
|
|
306
|
+
},
|
|
303
307
|
{
|
|
304
308
|
message: "Invalid locale code"
|
|
305
309
|
}
|
|
@@ -357,6 +361,7 @@ var bucketTypes = [
|
|
|
357
361
|
"xcode-strings",
|
|
358
362
|
"xcode-stringsdict",
|
|
359
363
|
"xcode-xcstrings",
|
|
364
|
+
"xcode-xcstrings-v2",
|
|
360
365
|
"yaml",
|
|
361
366
|
"yaml-root-key",
|
|
362
367
|
"properties",
|
package/build/index.d.cts
CHANGED
|
@@ -119,8 +119,8 @@ declare const resolveOverriddenLocale: (locale: string, delimiter?: LocaleDelimi
|
|
|
119
119
|
*/
|
|
120
120
|
declare function normalizeLocale(locale: string): string;
|
|
121
121
|
|
|
122
|
-
declare const bucketTypes: readonly ["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"];
|
|
123
|
-
declare const bucketTypeSchema: Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>;
|
|
122
|
+
declare const bucketTypes: readonly ["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"];
|
|
123
|
+
declare const bucketTypeSchema: Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>;
|
|
124
124
|
|
|
125
125
|
declare const localeSchema: Z.ZodObject<{
|
|
126
126
|
source: Z.ZodEffects<Z.ZodString, string, string>;
|
|
@@ -153,7 +153,7 @@ declare const configV1Definition: ConfigDefinition<{
|
|
|
153
153
|
source: string;
|
|
154
154
|
targets: string[];
|
|
155
155
|
}>;
|
|
156
|
-
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>>>>;
|
|
156
|
+
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>>>>;
|
|
157
157
|
}, any>;
|
|
158
158
|
declare const configV1_1Definition: ConfigDefinition<{
|
|
159
159
|
version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
|
|
@@ -168,7 +168,7 @@ declare const configV1_1Definition: ConfigDefinition<{
|
|
|
168
168
|
targets: string[];
|
|
169
169
|
}>;
|
|
170
170
|
} & {
|
|
171
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
171
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
172
172
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
|
173
173
|
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
|
174
174
|
}, "strip", Z.ZodTypeAny, {
|
|
@@ -181,7 +181,7 @@ declare const configV1_1Definition: ConfigDefinition<{
|
|
|
181
181
|
}, any>;
|
|
182
182
|
declare const configV1_2Definition: ConfigDefinition<{
|
|
183
183
|
version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
|
|
184
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
184
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
185
185
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
|
186
186
|
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
|
187
187
|
}, "strip", Z.ZodTypeAny, {
|
|
@@ -278,7 +278,7 @@ declare const configV1_3Definition: ConfigDefinition<{
|
|
|
278
278
|
extraSource?: string | undefined;
|
|
279
279
|
}>;
|
|
280
280
|
} & {
|
|
281
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
281
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
282
282
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
|
283
283
|
path: Z.ZodString;
|
|
284
284
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
|
@@ -339,7 +339,7 @@ declare const configV1_4Definition: ConfigDefinition<{
|
|
|
339
339
|
extraSource?: string | undefined;
|
|
340
340
|
}>;
|
|
341
341
|
} & {
|
|
342
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
342
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
343
343
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
|
344
344
|
path: Z.ZodString;
|
|
345
345
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
|
@@ -402,7 +402,7 @@ declare const configV1_5Definition: ConfigDefinition<{
|
|
|
402
402
|
extraSource?: string | undefined;
|
|
403
403
|
}>;
|
|
404
404
|
} & {
|
|
405
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
405
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
406
406
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
|
407
407
|
path: Z.ZodString;
|
|
408
408
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
|
@@ -546,7 +546,7 @@ declare const configV1_6Definition: ConfigDefinition<{
|
|
|
546
546
|
baseUrl?: string | undefined;
|
|
547
547
|
}>>;
|
|
548
548
|
} & {
|
|
549
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
549
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
550
550
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
|
551
551
|
path: Z.ZodString;
|
|
552
552
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
|
@@ -679,7 +679,7 @@ declare const configV1_7Definition: ConfigDefinition<{
|
|
|
679
679
|
baseUrl?: string | undefined;
|
|
680
680
|
}>>;
|
|
681
681
|
} & {
|
|
682
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
682
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
683
683
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
|
684
684
|
path: Z.ZodString;
|
|
685
685
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
|
@@ -820,7 +820,7 @@ declare const configV1_8Definition: ConfigDefinition<{
|
|
|
820
820
|
baseUrl?: string | undefined;
|
|
821
821
|
}>>;
|
|
822
822
|
} & {
|
|
823
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
823
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
824
824
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
|
825
825
|
path: Z.ZodString;
|
|
826
826
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
|
@@ -910,7 +910,7 @@ declare const configV1_9Definition: ConfigDefinition<{
|
|
|
910
910
|
baseUrl?: string | undefined;
|
|
911
911
|
}>>;
|
|
912
912
|
} & {
|
|
913
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
913
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
914
914
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
|
915
915
|
path: Z.ZodString;
|
|
916
916
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
|
@@ -985,7 +985,7 @@ declare const configV1_10Definition: ConfigDefinition<{
|
|
|
985
985
|
extraSource?: string | undefined;
|
|
986
986
|
}>;
|
|
987
987
|
$schema: Z.ZodDefault<Z.ZodString>;
|
|
988
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
988
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
989
989
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
|
990
990
|
path: Z.ZodString;
|
|
991
991
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
|
@@ -1089,7 +1089,7 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<{
|
|
|
1089
1089
|
extraSource?: string | undefined;
|
|
1090
1090
|
}>;
|
|
1091
1091
|
$schema: Z.ZodDefault<Z.ZodString>;
|
|
1092
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
1092
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
1093
1093
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
|
1094
1094
|
path: Z.ZodString;
|
|
1095
1095
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
|
@@ -1184,7 +1184,7 @@ declare function parseI18nConfig(rawConfig: unknown): {
|
|
|
1184
1184
|
targets: string[];
|
|
1185
1185
|
extraSource?: string | undefined;
|
|
1186
1186
|
};
|
|
1187
|
-
buckets: Partial<Record<"android" | "csv" | "ejs" | "flutter" | "html" | "json" | "json5" | "jsonc" | "markdown" | "markdoc" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json" | "typescript" | "txt" | "json-dictionary", {
|
|
1187
|
+
buckets: Partial<Record<"android" | "csv" | "ejs" | "flutter" | "html" | "json" | "json5" | "jsonc" | "markdown" | "markdoc" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "xcode-xcstrings-v2" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json" | "typescript" | "txt" | "json-dictionary", {
|
|
1188
1188
|
include: (string | {
|
|
1189
1189
|
path: string;
|
|
1190
1190
|
delimiter?: "-" | "_" | null | undefined;
|
|
@@ -1217,7 +1217,7 @@ declare const defaultConfig: {
|
|
|
1217
1217
|
targets: string[];
|
|
1218
1218
|
extraSource?: string | undefined;
|
|
1219
1219
|
};
|
|
1220
|
-
buckets: Partial<Record<"android" | "csv" | "ejs" | "flutter" | "html" | "json" | "json5" | "jsonc" | "markdown" | "markdoc" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json" | "typescript" | "txt" | "json-dictionary", {
|
|
1220
|
+
buckets: Partial<Record<"android" | "csv" | "ejs" | "flutter" | "html" | "json" | "json5" | "jsonc" | "markdown" | "markdoc" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "xcode-xcstrings-v2" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json" | "typescript" | "txt" | "json-dictionary", {
|
|
1221
1221
|
include: (string | {
|
|
1222
1222
|
path: string;
|
|
1223
1223
|
delimiter?: "-" | "_" | null | undefined;
|
package/build/index.d.ts
CHANGED
|
@@ -119,8 +119,8 @@ declare const resolveOverriddenLocale: (locale: string, delimiter?: LocaleDelimi
|
|
|
119
119
|
*/
|
|
120
120
|
declare function normalizeLocale(locale: string): string;
|
|
121
121
|
|
|
122
|
-
declare const bucketTypes: readonly ["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"];
|
|
123
|
-
declare const bucketTypeSchema: Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>;
|
|
122
|
+
declare const bucketTypes: readonly ["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"];
|
|
123
|
+
declare const bucketTypeSchema: Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>;
|
|
124
124
|
|
|
125
125
|
declare const localeSchema: Z.ZodObject<{
|
|
126
126
|
source: Z.ZodEffects<Z.ZodString, string, string>;
|
|
@@ -153,7 +153,7 @@ declare const configV1Definition: ConfigDefinition<{
|
|
|
153
153
|
source: string;
|
|
154
154
|
targets: string[];
|
|
155
155
|
}>;
|
|
156
|
-
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>>>>;
|
|
156
|
+
buckets: Z.ZodOptional<Z.ZodDefault<Z.ZodRecord<Z.ZodString, Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>>>>;
|
|
157
157
|
}, any>;
|
|
158
158
|
declare const configV1_1Definition: ConfigDefinition<{
|
|
159
159
|
version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
|
|
@@ -168,7 +168,7 @@ declare const configV1_1Definition: ConfigDefinition<{
|
|
|
168
168
|
targets: string[];
|
|
169
169
|
}>;
|
|
170
170
|
} & {
|
|
171
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
171
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
172
172
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
|
173
173
|
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
|
174
174
|
}, "strip", Z.ZodTypeAny, {
|
|
@@ -181,7 +181,7 @@ declare const configV1_1Definition: ConfigDefinition<{
|
|
|
181
181
|
}, any>;
|
|
182
182
|
declare const configV1_2Definition: ConfigDefinition<{
|
|
183
183
|
version: Z.ZodDefault<Z.ZodUnion<[Z.ZodNumber, Z.ZodString]>>;
|
|
184
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
184
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
185
185
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
|
186
186
|
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
|
187
187
|
}, "strip", Z.ZodTypeAny, {
|
|
@@ -278,7 +278,7 @@ declare const configV1_3Definition: ConfigDefinition<{
|
|
|
278
278
|
extraSource?: string | undefined;
|
|
279
279
|
}>;
|
|
280
280
|
} & {
|
|
281
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
281
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
282
282
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
|
283
283
|
path: Z.ZodString;
|
|
284
284
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
|
@@ -339,7 +339,7 @@ declare const configV1_4Definition: ConfigDefinition<{
|
|
|
339
339
|
extraSource?: string | undefined;
|
|
340
340
|
}>;
|
|
341
341
|
} & {
|
|
342
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
342
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
343
343
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
|
344
344
|
path: Z.ZodString;
|
|
345
345
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
|
@@ -402,7 +402,7 @@ declare const configV1_5Definition: ConfigDefinition<{
|
|
|
402
402
|
extraSource?: string | undefined;
|
|
403
403
|
}>;
|
|
404
404
|
} & {
|
|
405
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
405
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
406
406
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
|
407
407
|
path: Z.ZodString;
|
|
408
408
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
|
@@ -546,7 +546,7 @@ declare const configV1_6Definition: ConfigDefinition<{
|
|
|
546
546
|
baseUrl?: string | undefined;
|
|
547
547
|
}>>;
|
|
548
548
|
} & {
|
|
549
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
549
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
550
550
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
|
551
551
|
path: Z.ZodString;
|
|
552
552
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
|
@@ -679,7 +679,7 @@ declare const configV1_7Definition: ConfigDefinition<{
|
|
|
679
679
|
baseUrl?: string | undefined;
|
|
680
680
|
}>>;
|
|
681
681
|
} & {
|
|
682
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
682
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
683
683
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
|
684
684
|
path: Z.ZodString;
|
|
685
685
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
|
@@ -820,7 +820,7 @@ declare const configV1_8Definition: ConfigDefinition<{
|
|
|
820
820
|
baseUrl?: string | undefined;
|
|
821
821
|
}>>;
|
|
822
822
|
} & {
|
|
823
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
823
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
824
824
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
|
825
825
|
path: Z.ZodString;
|
|
826
826
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
|
@@ -910,7 +910,7 @@ declare const configV1_9Definition: ConfigDefinition<{
|
|
|
910
910
|
baseUrl?: string | undefined;
|
|
911
911
|
}>>;
|
|
912
912
|
} & {
|
|
913
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
913
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
914
914
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
|
915
915
|
path: Z.ZodString;
|
|
916
916
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
|
@@ -985,7 +985,7 @@ declare const configV1_10Definition: ConfigDefinition<{
|
|
|
985
985
|
extraSource?: string | undefined;
|
|
986
986
|
}>;
|
|
987
987
|
$schema: Z.ZodDefault<Z.ZodString>;
|
|
988
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
988
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
989
989
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
|
990
990
|
path: Z.ZodString;
|
|
991
991
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
|
@@ -1089,7 +1089,7 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<{
|
|
|
1089
1089
|
extraSource?: string | undefined;
|
|
1090
1090
|
}>;
|
|
1091
1091
|
$schema: Z.ZodDefault<Z.ZodString>;
|
|
1092
|
-
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
1092
|
+
buckets: Z.ZodDefault<Z.ZodRecord<Z.ZodEnum<["android", "csv", "ejs", "flutter", "html", "json", "json5", "jsonc", "markdown", "markdoc", "mdx", "xcode-strings", "xcode-stringsdict", "xcode-xcstrings", "xcode-xcstrings-v2", "yaml", "yaml-root-key", "properties", "po", "xliff", "xml", "srt", "dato", "compiler", "vtt", "php", "po", "vue-json", "typescript", "txt", "json-dictionary"]>, Z.ZodObject<{
|
|
1093
1093
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
|
1094
1094
|
path: Z.ZodString;
|
|
1095
1095
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
|
@@ -1184,7 +1184,7 @@ declare function parseI18nConfig(rawConfig: unknown): {
|
|
|
1184
1184
|
targets: string[];
|
|
1185
1185
|
extraSource?: string | undefined;
|
|
1186
1186
|
};
|
|
1187
|
-
buckets: Partial<Record<"android" | "csv" | "ejs" | "flutter" | "html" | "json" | "json5" | "jsonc" | "markdown" | "markdoc" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json" | "typescript" | "txt" | "json-dictionary", {
|
|
1187
|
+
buckets: Partial<Record<"android" | "csv" | "ejs" | "flutter" | "html" | "json" | "json5" | "jsonc" | "markdown" | "markdoc" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "xcode-xcstrings-v2" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json" | "typescript" | "txt" | "json-dictionary", {
|
|
1188
1188
|
include: (string | {
|
|
1189
1189
|
path: string;
|
|
1190
1190
|
delimiter?: "-" | "_" | null | undefined;
|
|
@@ -1217,7 +1217,7 @@ declare const defaultConfig: {
|
|
|
1217
1217
|
targets: string[];
|
|
1218
1218
|
extraSource?: string | undefined;
|
|
1219
1219
|
};
|
|
1220
|
-
buckets: Partial<Record<"android" | "csv" | "ejs" | "flutter" | "html" | "json" | "json5" | "jsonc" | "markdown" | "markdoc" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json" | "typescript" | "txt" | "json-dictionary", {
|
|
1220
|
+
buckets: Partial<Record<"android" | "csv" | "ejs" | "flutter" | "html" | "json" | "json5" | "jsonc" | "markdown" | "markdoc" | "mdx" | "xcode-strings" | "xcode-stringsdict" | "xcode-xcstrings" | "xcode-xcstrings-v2" | "yaml" | "yaml-root-key" | "properties" | "po" | "xliff" | "xml" | "srt" | "dato" | "compiler" | "vtt" | "php" | "vue-json" | "typescript" | "txt" | "json-dictionary", {
|
|
1221
1221
|
include: (string | {
|
|
1222
1222
|
path: string;
|
|
1223
1223
|
delimiter?: "-" | "_" | null | undefined;
|
package/build/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// src/locales.ts
|
|
2
2
|
import Z from "zod";
|
|
3
|
+
import { isValidLocale } from "@lingo.dev/_locales";
|
|
3
4
|
var localeMap = {
|
|
4
5
|
// Urdu (Pakistan)
|
|
5
6
|
ur: ["ur-PK"],
|
|
@@ -299,7 +300,10 @@ var localeCodes = [
|
|
|
299
300
|
...localeCodesFullExplicitRegion
|
|
300
301
|
];
|
|
301
302
|
var localeCodeSchema = Z.string().refine(
|
|
302
|
-
(value) =>
|
|
303
|
+
(value) => {
|
|
304
|
+
const normalized = normalizeLocale(value);
|
|
305
|
+
return isValidLocale(normalized);
|
|
306
|
+
},
|
|
303
307
|
{
|
|
304
308
|
message: "Invalid locale code"
|
|
305
309
|
}
|
|
@@ -357,6 +361,7 @@ var bucketTypes = [
|
|
|
357
361
|
"xcode-strings",
|
|
358
362
|
"xcode-stringsdict",
|
|
359
363
|
"xcode-xcstrings",
|
|
364
|
+
"xcode-xcstrings-v2",
|
|
360
365
|
"yaml",
|
|
361
366
|
"yaml-root-key",
|
|
362
367
|
"properties",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lingo.dev/_spec",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.0",
|
|
4
4
|
"description": "Lingo.dev open specification",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"license": "Apache-2.0",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"zod": "^3.25.76",
|
|
22
|
-
"zod-to-json-schema": "^3.24.5"
|
|
22
|
+
"zod-to-json-schema": "^3.24.5",
|
|
23
|
+
"@lingo.dev/_locales": "0.1.0"
|
|
23
24
|
},
|
|
24
25
|
"devDependencies": {
|
|
25
26
|
"@types/node": "^22.13.5",
|