@lingo.dev/_spec 0.24.3 → 0.25.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/index.cjs +11 -3
- package/build/index.d.cts +16 -16
- package/build/index.d.ts +16 -16
- package/build/index.mjs +11 -3
- package/package.json +1 -1
package/build/index.cjs
CHANGED
@@ -174,8 +174,15 @@ var localeMap = {
|
|
174
174
|
lv: ["lv-LV"],
|
175
175
|
// Lithuanian (Lithuania)
|
176
176
|
lt: ["lt-LT"],
|
177
|
-
// Norwegian
|
178
|
-
no: [
|
177
|
+
// Norwegian
|
178
|
+
no: [
|
179
|
+
"no-NO",
|
180
|
+
// Norway (legacy)
|
181
|
+
"nb-NO",
|
182
|
+
// Norwegian Bokmål
|
183
|
+
"nn-NO"
|
184
|
+
// Norwegian Nynorsk
|
185
|
+
],
|
179
186
|
// Romanian (Romania)
|
180
187
|
ro: ["ro-RO"],
|
181
188
|
// Slovak (Slovakia)
|
@@ -310,7 +317,8 @@ var bucketTypes = [
|
|
310
317
|
"srt",
|
311
318
|
"dato",
|
312
319
|
"compiler",
|
313
|
-
"vtt"
|
320
|
+
"vtt",
|
321
|
+
"php"
|
314
322
|
];
|
315
323
|
var bucketTypeSchema = _zod2.default.enum(bucketTypes);
|
316
324
|
|
package/build/index.d.cts
CHANGED
@@ -42,7 +42,7 @@ declare const localeMap: {
|
|
42
42
|
readonly km: readonly ["km-KH"];
|
43
43
|
readonly lv: readonly ["lv-LV"];
|
44
44
|
readonly lt: readonly ["lt-LT"];
|
45
|
-
readonly no: readonly ["no-NO"];
|
45
|
+
readonly no: readonly ["no-NO", "nb-NO", "nn-NO"];
|
46
46
|
readonly ro: readonly ["ro-RO"];
|
47
47
|
readonly sk: readonly ["sk-SK"];
|
48
48
|
readonly sw: readonly ["sw-TZ", "sw-KE"];
|
@@ -77,8 +77,8 @@ declare const getAlternativeLocaleCodes: (locale: string) => string[];
|
|
77
77
|
declare const getLocaleCodeDelimiter: (locale: string) => string | null;
|
78
78
|
declare const resolveOverridenLocale: (locale: string, delimiter?: "-" | "_" | null) => string;
|
79
79
|
|
80
|
-
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"];
|
81
|
-
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"]>;
|
80
|
+
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"];
|
81
|
+
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"]>;
|
82
82
|
|
83
83
|
declare const localeSchema: Z.ZodObject<{
|
84
84
|
source: Z.ZodEffects<Z.ZodString, string, string>;
|
@@ -111,7 +111,7 @@ declare const configV1Definition: ConfigDefinition<Z.objectUtil.extendShape<{
|
|
111
111
|
source: string;
|
112
112
|
targets: string[];
|
113
113
|
}>;
|
114
|
-
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"]>>>>;
|
114
|
+
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"]>>>>;
|
115
115
|
}>, Z.ZodRawShape>;
|
116
116
|
declare const configV1_1Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
117
117
|
version: Z.ZodDefault<Z.ZodNumber>;
|
@@ -126,9 +126,9 @@ declare const configV1_1Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
126
126
|
source: string;
|
127
127
|
targets: string[];
|
128
128
|
}>;
|
129
|
-
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"]>>>>;
|
129
|
+
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"]>>>>;
|
130
130
|
}>, {
|
131
|
-
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"]>, Z.ZodObject<{
|
131
|
+
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"]>, Z.ZodObject<{
|
132
132
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
133
133
|
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
134
134
|
}, "strip", Z.ZodTypeAny, {
|
@@ -152,9 +152,9 @@ declare const configV1_2Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
152
152
|
source: string;
|
153
153
|
targets: string[];
|
154
154
|
}>;
|
155
|
-
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"]>>>>;
|
155
|
+
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"]>>>>;
|
156
156
|
}>, {
|
157
|
-
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"]>, Z.ZodObject<{
|
157
|
+
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"]>, Z.ZodObject<{
|
158
158
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
159
159
|
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
160
160
|
}, "strip", Z.ZodTypeAny, {
|
@@ -204,9 +204,9 @@ declare const configV1_3Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
204
204
|
source: string;
|
205
205
|
targets: string[];
|
206
206
|
}>;
|
207
|
-
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"]>>>>;
|
207
|
+
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"]>>>>;
|
208
208
|
}>, {
|
209
|
-
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"]>, Z.ZodObject<{
|
209
|
+
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"]>, Z.ZodObject<{
|
210
210
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
211
211
|
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
212
212
|
}, "strip", Z.ZodTypeAny, {
|
@@ -232,7 +232,7 @@ declare const configV1_3Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
232
232
|
extraSource?: string | undefined;
|
233
233
|
}>;
|
234
234
|
}>, {
|
235
|
-
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"]>, Z.ZodObject<{
|
235
|
+
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"]>, Z.ZodObject<{
|
236
236
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
237
237
|
path: Z.ZodString;
|
238
238
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
@@ -286,9 +286,9 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShap
|
|
286
286
|
source: string;
|
287
287
|
targets: string[];
|
288
288
|
}>;
|
289
|
-
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"]>>>>;
|
289
|
+
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"]>>>>;
|
290
290
|
}>, {
|
291
|
-
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"]>, Z.ZodObject<{
|
291
|
+
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"]>, Z.ZodObject<{
|
292
292
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
293
293
|
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
294
294
|
}, "strip", Z.ZodTypeAny, {
|
@@ -314,7 +314,7 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShap
|
|
314
314
|
extraSource?: string | undefined;
|
315
315
|
}>;
|
316
316
|
}>, {
|
317
|
-
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"]>, Z.ZodObject<{
|
317
|
+
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"]>, Z.ZodObject<{
|
318
318
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
319
319
|
path: Z.ZodString;
|
320
320
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
@@ -363,7 +363,7 @@ declare function parseI18nConfig(rawConfig: unknown): {
|
|
363
363
|
targets: string[];
|
364
364
|
extraSource?: string | undefined;
|
365
365
|
};
|
366
|
-
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", {
|
366
|
+
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", {
|
367
367
|
include: (string | {
|
368
368
|
path: string;
|
369
369
|
delimiter?: "-" | "_" | null | undefined;
|
@@ -381,7 +381,7 @@ declare const defaultConfig: {
|
|
381
381
|
targets: string[];
|
382
382
|
extraSource?: string | undefined;
|
383
383
|
};
|
384
|
-
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", {
|
384
|
+
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", {
|
385
385
|
include: (string | {
|
386
386
|
path: string;
|
387
387
|
delimiter?: "-" | "_" | null | undefined;
|
package/build/index.d.ts
CHANGED
@@ -42,7 +42,7 @@ declare const localeMap: {
|
|
42
42
|
readonly km: readonly ["km-KH"];
|
43
43
|
readonly lv: readonly ["lv-LV"];
|
44
44
|
readonly lt: readonly ["lt-LT"];
|
45
|
-
readonly no: readonly ["no-NO"];
|
45
|
+
readonly no: readonly ["no-NO", "nb-NO", "nn-NO"];
|
46
46
|
readonly ro: readonly ["ro-RO"];
|
47
47
|
readonly sk: readonly ["sk-SK"];
|
48
48
|
readonly sw: readonly ["sw-TZ", "sw-KE"];
|
@@ -77,8 +77,8 @@ declare const getAlternativeLocaleCodes: (locale: string) => string[];
|
|
77
77
|
declare const getLocaleCodeDelimiter: (locale: string) => string | null;
|
78
78
|
declare const resolveOverridenLocale: (locale: string, delimiter?: "-" | "_" | null) => string;
|
79
79
|
|
80
|
-
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"];
|
81
|
-
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"]>;
|
80
|
+
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"];
|
81
|
+
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"]>;
|
82
82
|
|
83
83
|
declare const localeSchema: Z.ZodObject<{
|
84
84
|
source: Z.ZodEffects<Z.ZodString, string, string>;
|
@@ -111,7 +111,7 @@ declare const configV1Definition: ConfigDefinition<Z.objectUtil.extendShape<{
|
|
111
111
|
source: string;
|
112
112
|
targets: string[];
|
113
113
|
}>;
|
114
|
-
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"]>>>>;
|
114
|
+
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"]>>>>;
|
115
115
|
}>, Z.ZodRawShape>;
|
116
116
|
declare const configV1_1Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
117
117
|
version: Z.ZodDefault<Z.ZodNumber>;
|
@@ -126,9 +126,9 @@ declare const configV1_1Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
126
126
|
source: string;
|
127
127
|
targets: string[];
|
128
128
|
}>;
|
129
|
-
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"]>>>>;
|
129
|
+
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"]>>>>;
|
130
130
|
}>, {
|
131
|
-
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"]>, Z.ZodObject<{
|
131
|
+
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"]>, Z.ZodObject<{
|
132
132
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
133
133
|
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
134
134
|
}, "strip", Z.ZodTypeAny, {
|
@@ -152,9 +152,9 @@ declare const configV1_2Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
152
152
|
source: string;
|
153
153
|
targets: string[];
|
154
154
|
}>;
|
155
|
-
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"]>>>>;
|
155
|
+
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"]>>>>;
|
156
156
|
}>, {
|
157
|
-
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"]>, Z.ZodObject<{
|
157
|
+
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"]>, Z.ZodObject<{
|
158
158
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
159
159
|
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
160
160
|
}, "strip", Z.ZodTypeAny, {
|
@@ -204,9 +204,9 @@ declare const configV1_3Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
204
204
|
source: string;
|
205
205
|
targets: string[];
|
206
206
|
}>;
|
207
|
-
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"]>>>>;
|
207
|
+
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"]>>>>;
|
208
208
|
}>, {
|
209
|
-
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"]>, Z.ZodObject<{
|
209
|
+
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"]>, Z.ZodObject<{
|
210
210
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
211
211
|
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
212
212
|
}, "strip", Z.ZodTypeAny, {
|
@@ -232,7 +232,7 @@ declare const configV1_3Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
232
232
|
extraSource?: string | undefined;
|
233
233
|
}>;
|
234
234
|
}>, {
|
235
|
-
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"]>, Z.ZodObject<{
|
235
|
+
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"]>, Z.ZodObject<{
|
236
236
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
237
237
|
path: Z.ZodString;
|
238
238
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
@@ -286,9 +286,9 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShap
|
|
286
286
|
source: string;
|
287
287
|
targets: string[];
|
288
288
|
}>;
|
289
|
-
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"]>>>>;
|
289
|
+
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"]>>>>;
|
290
290
|
}>, {
|
291
|
-
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"]>, Z.ZodObject<{
|
291
|
+
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"]>, Z.ZodObject<{
|
292
292
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
293
293
|
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
294
294
|
}, "strip", Z.ZodTypeAny, {
|
@@ -314,7 +314,7 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShap
|
|
314
314
|
extraSource?: string | undefined;
|
315
315
|
}>;
|
316
316
|
}>, {
|
317
|
-
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"]>, Z.ZodObject<{
|
317
|
+
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"]>, Z.ZodObject<{
|
318
318
|
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
319
319
|
path: Z.ZodString;
|
320
320
|
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
@@ -363,7 +363,7 @@ declare function parseI18nConfig(rawConfig: unknown): {
|
|
363
363
|
targets: string[];
|
364
364
|
extraSource?: string | undefined;
|
365
365
|
};
|
366
|
-
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", {
|
366
|
+
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", {
|
367
367
|
include: (string | {
|
368
368
|
path: string;
|
369
369
|
delimiter?: "-" | "_" | null | undefined;
|
@@ -381,7 +381,7 @@ declare const defaultConfig: {
|
|
381
381
|
targets: string[];
|
382
382
|
extraSource?: string | undefined;
|
383
383
|
};
|
384
|
-
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", {
|
384
|
+
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", {
|
385
385
|
include: (string | {
|
386
386
|
path: string;
|
387
387
|
delimiter?: "-" | "_" | null | undefined;
|
package/build/index.mjs
CHANGED
@@ -174,8 +174,15 @@ var localeMap = {
|
|
174
174
|
lv: ["lv-LV"],
|
175
175
|
// Lithuanian (Lithuania)
|
176
176
|
lt: ["lt-LT"],
|
177
|
-
// Norwegian
|
178
|
-
no: [
|
177
|
+
// Norwegian
|
178
|
+
no: [
|
179
|
+
"no-NO",
|
180
|
+
// Norway (legacy)
|
181
|
+
"nb-NO",
|
182
|
+
// Norwegian Bokmål
|
183
|
+
"nn-NO"
|
184
|
+
// Norwegian Nynorsk
|
185
|
+
],
|
179
186
|
// Romanian (Romania)
|
180
187
|
ro: ["ro-RO"],
|
181
188
|
// Slovak (Slovakia)
|
@@ -310,7 +317,8 @@ var bucketTypes = [
|
|
310
317
|
"srt",
|
311
318
|
"dato",
|
312
319
|
"compiler",
|
313
|
-
"vtt"
|
320
|
+
"vtt",
|
321
|
+
"php"
|
314
322
|
];
|
315
323
|
var bucketTypeSchema = Z2.enum(bucketTypes);
|
316
324
|
|