@lingo.dev/_spec 0.24.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +19 -0
- package/build/index.cjs +496 -0
- package/build/index.d.cts +396 -0
- package/build/index.d.ts +396 -0
- package/build/index.mjs +496 -0
- package/package.json +33 -0
@@ -0,0 +1,396 @@
|
|
1
|
+
import Z from 'zod';
|
2
|
+
|
3
|
+
declare const localeMap: {
|
4
|
+
readonly ur: readonly ["ur-PK"];
|
5
|
+
readonly vi: readonly ["vi-VN"];
|
6
|
+
readonly tr: readonly ["tr-TR"];
|
7
|
+
readonly ta: readonly ["ta-IN"];
|
8
|
+
readonly sr: readonly ["sr-RS", "sr-Latn-RS", "sr-Cyrl-RS"];
|
9
|
+
readonly hu: readonly ["hu-HU"];
|
10
|
+
readonly he: readonly ["he-IL"];
|
11
|
+
readonly et: readonly ["et-EE"];
|
12
|
+
readonly el: readonly ["el-GR"];
|
13
|
+
readonly da: readonly ["da-DK"];
|
14
|
+
readonly az: readonly ["az-AZ"];
|
15
|
+
readonly th: readonly ["th-TH"];
|
16
|
+
readonly sv: readonly ["sv-SE"];
|
17
|
+
readonly en: readonly ["en-US", "en-GB", "en-AU", "en-CA"];
|
18
|
+
readonly es: readonly ["es-ES", "es-419", "es-MX", "es-AR"];
|
19
|
+
readonly fr: readonly ["fr-FR", "fr-CA", "fr-BE"];
|
20
|
+
readonly ca: readonly ["ca-ES"];
|
21
|
+
readonly ja: readonly ["ja-JP"];
|
22
|
+
readonly de: readonly ["de-DE", "de-AT", "de-CH"];
|
23
|
+
readonly pt: readonly ["pt-PT", "pt-BR"];
|
24
|
+
readonly it: readonly ["it-IT", "it-CH"];
|
25
|
+
readonly ru: readonly ["ru-RU", "ru-BY"];
|
26
|
+
readonly uk: readonly ["uk-UA"];
|
27
|
+
readonly be: readonly ["be-BY"];
|
28
|
+
readonly hi: readonly ["hi-IN"];
|
29
|
+
readonly zh: readonly ["zh-CN", "zh-TW", "zh-HK", "zh-Hans", "zh-Hant", "zh-Hant-HK", "zh-Hant-TW", "zh-Hant-CN", "zh-Hans-HK", "zh-Hans-TW", "zh-Hans-CN"];
|
30
|
+
readonly ko: readonly ["ko-KR"];
|
31
|
+
readonly ar: readonly ["ar-EG", "ar-SA", "ar-AE", "ar-MA"];
|
32
|
+
readonly bg: readonly ["bg-BG"];
|
33
|
+
readonly cs: readonly ["cs-CZ"];
|
34
|
+
readonly nl: readonly ["nl-NL", "nl-BE"];
|
35
|
+
readonly pl: readonly ["pl-PL"];
|
36
|
+
readonly id: readonly ["id-ID"];
|
37
|
+
readonly ms: readonly ["ms-MY"];
|
38
|
+
readonly fi: readonly ["fi-FI"];
|
39
|
+
readonly eu: readonly ["eu-ES"];
|
40
|
+
readonly hr: readonly ["hr-HR"];
|
41
|
+
readonly iw: readonly ["iw-IL"];
|
42
|
+
readonly km: readonly ["km-KH"];
|
43
|
+
readonly lv: readonly ["lv-LV"];
|
44
|
+
readonly lt: readonly ["lt-LT"];
|
45
|
+
readonly no: readonly ["no-NO"];
|
46
|
+
readonly ro: readonly ["ro-RO"];
|
47
|
+
readonly sk: readonly ["sk-SK"];
|
48
|
+
readonly sw: readonly ["sw-TZ", "sw-KE"];
|
49
|
+
readonly fa: readonly ["fa-IR"];
|
50
|
+
readonly fil: readonly ["fil-PH"];
|
51
|
+
readonly pa: readonly ["pa-IN", "pa-PK"];
|
52
|
+
readonly bn: readonly ["bn-BD", "bn-IN"];
|
53
|
+
readonly ga: readonly ["ga-IE"];
|
54
|
+
readonly mt: readonly ["mt-MT"];
|
55
|
+
readonly sl: readonly ["sl-SI"];
|
56
|
+
readonly sq: readonly ["sq-AL"];
|
57
|
+
readonly bar: readonly ["bar-DE"];
|
58
|
+
readonly nap: readonly ["nap-IT"];
|
59
|
+
readonly af: readonly ["af-ZA"];
|
60
|
+
readonly so: readonly ["so-SO"];
|
61
|
+
readonly ti: readonly ["ti-ET"];
|
62
|
+
readonly zgh: readonly ["zgh-MA"];
|
63
|
+
readonly tl: readonly ["tl-PH"];
|
64
|
+
readonly te: readonly ["te-IN"];
|
65
|
+
};
|
66
|
+
type LocaleCodeShort = keyof typeof localeMap;
|
67
|
+
type LocaleCodeFull = (typeof localeMap)[LocaleCodeShort][number];
|
68
|
+
type LocaleCode = LocaleCodeShort | LocaleCodeFull;
|
69
|
+
declare const localeCodesShort: LocaleCodeShort[];
|
70
|
+
declare const localeCodesFull: LocaleCodeFull[];
|
71
|
+
declare const localeCodesFullUnderscore: string[];
|
72
|
+
declare const localeCodesFullExplicitRegion: string[];
|
73
|
+
declare const localeCodes: LocaleCode[];
|
74
|
+
declare const localeCodeSchema: Z.ZodEffects<Z.ZodString, string, string>;
|
75
|
+
declare const resolveLocaleCode: (value: LocaleCode) => LocaleCodeFull;
|
76
|
+
declare const getAlternativeLocaleCodes: (locale: string) => string[];
|
77
|
+
declare const getLocaleCodeDelimiter: (locale: string) => string | null;
|
78
|
+
declare const resolveOverridenLocale: (locale: string, delimiter?: "-" | "_" | null) => string;
|
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"]>;
|
82
|
+
|
83
|
+
declare const localeSchema: Z.ZodObject<{
|
84
|
+
source: Z.ZodEffects<Z.ZodString, string, string>;
|
85
|
+
targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
|
86
|
+
}, "strip", Z.ZodTypeAny, {
|
87
|
+
source: string;
|
88
|
+
targets: string[];
|
89
|
+
}, {
|
90
|
+
source: string;
|
91
|
+
targets: string[];
|
92
|
+
}>;
|
93
|
+
type ConfigDefinition<T extends Z.ZodRawShape, P extends Z.ZodRawShape> = {
|
94
|
+
schema: Z.ZodObject<T>;
|
95
|
+
defaultValue: Z.infer<Z.ZodObject<T>>;
|
96
|
+
parse: (rawConfig: unknown) => Z.infer<Z.ZodObject<T>>;
|
97
|
+
};
|
98
|
+
declare const configV0Definition: ConfigDefinition<{
|
99
|
+
version: Z.ZodDefault<Z.ZodNumber>;
|
100
|
+
}, Z.ZodRawShape>;
|
101
|
+
declare const configV1Definition: ConfigDefinition<Z.objectUtil.extendShape<{
|
102
|
+
version: Z.ZodDefault<Z.ZodNumber>;
|
103
|
+
}, {
|
104
|
+
locale: Z.ZodObject<{
|
105
|
+
source: Z.ZodEffects<Z.ZodString, string, string>;
|
106
|
+
targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
|
107
|
+
}, "strip", Z.ZodTypeAny, {
|
108
|
+
source: string;
|
109
|
+
targets: string[];
|
110
|
+
}, {
|
111
|
+
source: string;
|
112
|
+
targets: string[];
|
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"]>>>>;
|
115
|
+
}>, Z.ZodRawShape>;
|
116
|
+
declare const configV1_1Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
117
|
+
version: Z.ZodDefault<Z.ZodNumber>;
|
118
|
+
}, {
|
119
|
+
locale: Z.ZodObject<{
|
120
|
+
source: Z.ZodEffects<Z.ZodString, string, string>;
|
121
|
+
targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
|
122
|
+
}, "strip", Z.ZodTypeAny, {
|
123
|
+
source: string;
|
124
|
+
targets: string[];
|
125
|
+
}, {
|
126
|
+
source: string;
|
127
|
+
targets: string[];
|
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"]>>>>;
|
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<{
|
132
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
133
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
134
|
+
}, "strip", Z.ZodTypeAny, {
|
135
|
+
include: string[];
|
136
|
+
exclude?: string[] | undefined;
|
137
|
+
}, {
|
138
|
+
exclude?: string[] | undefined;
|
139
|
+
include?: string[] | undefined;
|
140
|
+
}>>>;
|
141
|
+
}>, Z.ZodRawShape>;
|
142
|
+
declare const configV1_2Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
143
|
+
version: Z.ZodDefault<Z.ZodNumber>;
|
144
|
+
}, {
|
145
|
+
locale: Z.ZodObject<{
|
146
|
+
source: Z.ZodEffects<Z.ZodString, string, string>;
|
147
|
+
targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
|
148
|
+
}, "strip", Z.ZodTypeAny, {
|
149
|
+
source: string;
|
150
|
+
targets: string[];
|
151
|
+
}, {
|
152
|
+
source: string;
|
153
|
+
targets: string[];
|
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"]>>>>;
|
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<{
|
158
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
159
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
160
|
+
}, "strip", Z.ZodTypeAny, {
|
161
|
+
include: string[];
|
162
|
+
exclude?: string[] | undefined;
|
163
|
+
}, {
|
164
|
+
exclude?: string[] | undefined;
|
165
|
+
include?: string[] | undefined;
|
166
|
+
}>>>;
|
167
|
+
}>, {
|
168
|
+
locale: Z.ZodObject<Z.objectUtil.extendShape<{
|
169
|
+
source: Z.ZodEffects<Z.ZodString, string, string>;
|
170
|
+
targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
|
171
|
+
}, {
|
172
|
+
extraSource: Z.ZodOptional<Z.ZodEffects<Z.ZodString, string, string>>;
|
173
|
+
}>, "strip", Z.ZodTypeAny, {
|
174
|
+
source: string;
|
175
|
+
targets: string[];
|
176
|
+
extraSource?: string | undefined;
|
177
|
+
}, {
|
178
|
+
source: string;
|
179
|
+
targets: string[];
|
180
|
+
extraSource?: string | undefined;
|
181
|
+
}>;
|
182
|
+
}>, Z.ZodRawShape>;
|
183
|
+
declare const bucketItemSchema: Z.ZodObject<{
|
184
|
+
path: Z.ZodString;
|
185
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
186
|
+
}, "strip", Z.ZodTypeAny, {
|
187
|
+
path: string;
|
188
|
+
delimiter?: "-" | "_" | null | undefined;
|
189
|
+
}, {
|
190
|
+
path: string;
|
191
|
+
delimiter?: "-" | "_" | null | undefined;
|
192
|
+
}>;
|
193
|
+
type BucketItem = Z.infer<typeof bucketItemSchema>;
|
194
|
+
declare const configV1_3Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
195
|
+
version: Z.ZodDefault<Z.ZodNumber>;
|
196
|
+
}, {
|
197
|
+
locale: Z.ZodObject<{
|
198
|
+
source: Z.ZodEffects<Z.ZodString, string, string>;
|
199
|
+
targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
|
200
|
+
}, "strip", Z.ZodTypeAny, {
|
201
|
+
source: string;
|
202
|
+
targets: string[];
|
203
|
+
}, {
|
204
|
+
source: string;
|
205
|
+
targets: string[];
|
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"]>>>>;
|
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<{
|
210
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
211
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
212
|
+
}, "strip", Z.ZodTypeAny, {
|
213
|
+
include: string[];
|
214
|
+
exclude?: string[] | undefined;
|
215
|
+
}, {
|
216
|
+
exclude?: string[] | undefined;
|
217
|
+
include?: string[] | undefined;
|
218
|
+
}>>>;
|
219
|
+
}>, {
|
220
|
+
locale: Z.ZodObject<Z.objectUtil.extendShape<{
|
221
|
+
source: Z.ZodEffects<Z.ZodString, string, string>;
|
222
|
+
targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
|
223
|
+
}, {
|
224
|
+
extraSource: Z.ZodOptional<Z.ZodEffects<Z.ZodString, string, string>>;
|
225
|
+
}>, "strip", Z.ZodTypeAny, {
|
226
|
+
source: string;
|
227
|
+
targets: string[];
|
228
|
+
extraSource?: string | undefined;
|
229
|
+
}, {
|
230
|
+
source: string;
|
231
|
+
targets: string[];
|
232
|
+
extraSource?: string | undefined;
|
233
|
+
}>;
|
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<{
|
236
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
237
|
+
path: Z.ZodString;
|
238
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
239
|
+
}, "strip", Z.ZodTypeAny, {
|
240
|
+
path: string;
|
241
|
+
delimiter?: "-" | "_" | null | undefined;
|
242
|
+
}, {
|
243
|
+
path: string;
|
244
|
+
delimiter?: "-" | "_" | null | undefined;
|
245
|
+
}>]>, "many">>;
|
246
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
247
|
+
path: Z.ZodString;
|
248
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
249
|
+
}, "strip", Z.ZodTypeAny, {
|
250
|
+
path: string;
|
251
|
+
delimiter?: "-" | "_" | null | undefined;
|
252
|
+
}, {
|
253
|
+
path: string;
|
254
|
+
delimiter?: "-" | "_" | null | undefined;
|
255
|
+
}>]>, "many">>>;
|
256
|
+
}, "strip", Z.ZodTypeAny, {
|
257
|
+
include: (string | {
|
258
|
+
path: string;
|
259
|
+
delimiter?: "-" | "_" | null | undefined;
|
260
|
+
})[];
|
261
|
+
exclude?: (string | {
|
262
|
+
path: string;
|
263
|
+
delimiter?: "-" | "_" | null | undefined;
|
264
|
+
})[] | undefined;
|
265
|
+
}, {
|
266
|
+
exclude?: (string | {
|
267
|
+
path: string;
|
268
|
+
delimiter?: "-" | "_" | null | undefined;
|
269
|
+
})[] | undefined;
|
270
|
+
include?: (string | {
|
271
|
+
path: string;
|
272
|
+
delimiter?: "-" | "_" | null | undefined;
|
273
|
+
})[] | undefined;
|
274
|
+
}>>>;
|
275
|
+
}>, Z.ZodRawShape>;
|
276
|
+
declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
277
|
+
version: Z.ZodDefault<Z.ZodNumber>;
|
278
|
+
}, {
|
279
|
+
locale: Z.ZodObject<{
|
280
|
+
source: Z.ZodEffects<Z.ZodString, string, string>;
|
281
|
+
targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
|
282
|
+
}, "strip", Z.ZodTypeAny, {
|
283
|
+
source: string;
|
284
|
+
targets: string[];
|
285
|
+
}, {
|
286
|
+
source: string;
|
287
|
+
targets: string[];
|
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"]>>>>;
|
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<{
|
292
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
293
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
294
|
+
}, "strip", Z.ZodTypeAny, {
|
295
|
+
include: string[];
|
296
|
+
exclude?: string[] | undefined;
|
297
|
+
}, {
|
298
|
+
exclude?: string[] | undefined;
|
299
|
+
include?: string[] | undefined;
|
300
|
+
}>>>;
|
301
|
+
}>, {
|
302
|
+
locale: Z.ZodObject<Z.objectUtil.extendShape<{
|
303
|
+
source: Z.ZodEffects<Z.ZodString, string, string>;
|
304
|
+
targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
|
305
|
+
}, {
|
306
|
+
extraSource: Z.ZodOptional<Z.ZodEffects<Z.ZodString, string, string>>;
|
307
|
+
}>, "strip", Z.ZodTypeAny, {
|
308
|
+
source: string;
|
309
|
+
targets: string[];
|
310
|
+
extraSource?: string | undefined;
|
311
|
+
}, {
|
312
|
+
source: string;
|
313
|
+
targets: string[];
|
314
|
+
extraSource?: string | undefined;
|
315
|
+
}>;
|
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<{
|
318
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
319
|
+
path: Z.ZodString;
|
320
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
321
|
+
}, "strip", Z.ZodTypeAny, {
|
322
|
+
path: string;
|
323
|
+
delimiter?: "-" | "_" | null | undefined;
|
324
|
+
}, {
|
325
|
+
path: string;
|
326
|
+
delimiter?: "-" | "_" | null | undefined;
|
327
|
+
}>]>, "many">>;
|
328
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
329
|
+
path: Z.ZodString;
|
330
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
331
|
+
}, "strip", Z.ZodTypeAny, {
|
332
|
+
path: string;
|
333
|
+
delimiter?: "-" | "_" | null | undefined;
|
334
|
+
}, {
|
335
|
+
path: string;
|
336
|
+
delimiter?: "-" | "_" | null | undefined;
|
337
|
+
}>]>, "many">>>;
|
338
|
+
}, "strip", Z.ZodTypeAny, {
|
339
|
+
include: (string | {
|
340
|
+
path: string;
|
341
|
+
delimiter?: "-" | "_" | null | undefined;
|
342
|
+
})[];
|
343
|
+
exclude?: (string | {
|
344
|
+
path: string;
|
345
|
+
delimiter?: "-" | "_" | null | undefined;
|
346
|
+
})[] | undefined;
|
347
|
+
}, {
|
348
|
+
exclude?: (string | {
|
349
|
+
path: string;
|
350
|
+
delimiter?: "-" | "_" | null | undefined;
|
351
|
+
})[] | undefined;
|
352
|
+
include?: (string | {
|
353
|
+
path: string;
|
354
|
+
delimiter?: "-" | "_" | null | undefined;
|
355
|
+
})[] | undefined;
|
356
|
+
}>>>;
|
357
|
+
}>, Z.ZodRawShape>;
|
358
|
+
type I18nConfig = Z.infer<(typeof LATEST_CONFIG_DEFINITION)["schema"]>;
|
359
|
+
declare function parseI18nConfig(rawConfig: unknown): {
|
360
|
+
version: number;
|
361
|
+
locale: {
|
362
|
+
source: string;
|
363
|
+
targets: string[];
|
364
|
+
extraSource?: string | undefined;
|
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", {
|
367
|
+
include: (string | {
|
368
|
+
path: string;
|
369
|
+
delimiter?: "-" | "_" | null | undefined;
|
370
|
+
})[];
|
371
|
+
exclude?: (string | {
|
372
|
+
path: string;
|
373
|
+
delimiter?: "-" | "_" | null | undefined;
|
374
|
+
})[] | undefined;
|
375
|
+
}>>;
|
376
|
+
};
|
377
|
+
declare const defaultConfig: {
|
378
|
+
version: number;
|
379
|
+
locale: {
|
380
|
+
source: string;
|
381
|
+
targets: string[];
|
382
|
+
extraSource?: string | undefined;
|
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", {
|
385
|
+
include: (string | {
|
386
|
+
path: string;
|
387
|
+
delimiter?: "-" | "_" | null | undefined;
|
388
|
+
})[];
|
389
|
+
exclude?: (string | {
|
390
|
+
path: string;
|
391
|
+
delimiter?: "-" | "_" | null | undefined;
|
392
|
+
})[] | undefined;
|
393
|
+
}>>;
|
394
|
+
};
|
395
|
+
|
396
|
+
export { type BucketItem, type I18nConfig, type LocaleCode, type LocaleCodeFull, type LocaleCodeShort, bucketItemSchema, bucketTypeSchema, bucketTypes, configV0Definition, configV1Definition, configV1_1Definition, configV1_2Definition, configV1_3Definition, defaultConfig, getAlternativeLocaleCodes, getLocaleCodeDelimiter, localeCodeSchema, localeCodes, localeCodesFull, localeCodesFullExplicitRegion, localeCodesFullUnderscore, localeCodesShort, localeSchema, parseI18nConfig, resolveLocaleCode, resolveOverridenLocale };
|