@lingo.dev/_spec 0.26.6 → 0.28.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 +69 -0
- package/build/index.cjs +66 -7
- package/build/index.d.cts +498 -2
- package/build/index.d.ts +498 -2
- package/build/index.mjs +65 -6
- package/package.json +1 -1
package/build/index.d.cts
CHANGED
@@ -32,6 +32,7 @@ declare const localeMap: {
|
|
32
32
|
readonly ar: readonly ["ar-EG", "ar-SA", "ar-AE", "ar-MA"];
|
33
33
|
readonly bg: readonly ["bg-BG"];
|
34
34
|
readonly cs: readonly ["cs-CZ"];
|
35
|
+
readonly cy: readonly ["cy-GB"];
|
35
36
|
readonly nl: readonly ["nl-NL", "nl-BE"];
|
36
37
|
readonly pl: readonly ["pl-PL"];
|
37
38
|
readonly id: readonly ["id-ID"];
|
@@ -227,6 +228,49 @@ declare const bucketItemSchema: Z.ZodObject<{
|
|
227
228
|
delimiter?: "-" | "_" | null | undefined;
|
228
229
|
}>;
|
229
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
|
+
}>;
|
230
274
|
declare const configV1_3Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
231
275
|
version: Z.ZodDefault<Z.ZodNumber>;
|
232
276
|
}, {
|
@@ -399,7 +443,178 @@ declare const configV1_4Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.
|
|
399
443
|
}>, {
|
400
444
|
$schema: Z.ZodDefault<Z.ZodString>;
|
401
445
|
}>, Z.ZodRawShape>;
|
402
|
-
declare const
|
446
|
+
declare const configV1_5Definition: ConfigDefinition<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<Z.objectUtil.extendShape<{
|
447
|
+
version: Z.ZodDefault<Z.ZodNumber>;
|
448
|
+
}, {
|
449
|
+
locale: Z.ZodObject<{
|
450
|
+
source: Z.ZodEffects<Z.ZodString, string, string>;
|
451
|
+
targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
|
452
|
+
}, "strip", Z.ZodTypeAny, {
|
453
|
+
source: string;
|
454
|
+
targets: string[];
|
455
|
+
}, {
|
456
|
+
source: string;
|
457
|
+
targets: string[];
|
458
|
+
}>;
|
459
|
+
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"]>>>>;
|
460
|
+
}>, {
|
461
|
+
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<{
|
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", "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<{
|
403
618
|
version: Z.ZodDefault<Z.ZodNumber>;
|
404
619
|
}, {
|
405
620
|
locale: Z.ZodObject<{
|
@@ -485,6 +700,263 @@ declare const LATEST_CONFIG_DEFINITION: ConfigDefinition<Z.objectUtil.extendShap
|
|
485
700
|
}>>>;
|
486
701
|
}>, {
|
487
702
|
$schema: Z.ZodDefault<Z.ZodString>;
|
703
|
+
}>, {
|
704
|
+
provider: Z.ZodOptional<Z.ZodDefault<Z.ZodUnion<[Z.ZodObject<Z.objectUtil.extendShape<{
|
705
|
+
id: Z.ZodString;
|
706
|
+
model: Z.ZodString;
|
707
|
+
prompt: Z.ZodString;
|
708
|
+
baseUrl: Z.ZodOptional<Z.ZodString>;
|
709
|
+
}, {
|
710
|
+
id: Z.ZodLiteral<"lingo">;
|
711
|
+
model: Z.ZodLiteral<"best">;
|
712
|
+
}>, "strip", Z.ZodTypeAny, {
|
713
|
+
id: "lingo";
|
714
|
+
model: "best";
|
715
|
+
prompt: string;
|
716
|
+
baseUrl?: string | undefined;
|
717
|
+
}, {
|
718
|
+
id: "lingo";
|
719
|
+
model: "best";
|
720
|
+
prompt: string;
|
721
|
+
baseUrl?: string | undefined;
|
722
|
+
}>, Z.ZodObject<Z.objectUtil.extendShape<{
|
723
|
+
id: Z.ZodString;
|
724
|
+
model: Z.ZodString;
|
725
|
+
prompt: Z.ZodString;
|
726
|
+
baseUrl: Z.ZodOptional<Z.ZodString>;
|
727
|
+
}, {
|
728
|
+
id: Z.ZodEnum<["openai", "anthropic"]>;
|
729
|
+
}>, "strip", Z.ZodTypeAny, {
|
730
|
+
id: "openai" | "anthropic";
|
731
|
+
model: string;
|
732
|
+
prompt: string;
|
733
|
+
baseUrl?: string | undefined;
|
734
|
+
}, {
|
735
|
+
id: "openai" | "anthropic";
|
736
|
+
model: string;
|
737
|
+
prompt: string;
|
738
|
+
baseUrl?: string | undefined;
|
739
|
+
}>]>>>;
|
740
|
+
}>, {
|
741
|
+
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<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
|
+
}>>>;
|
788
|
+
}>, Z.ZodRawShape>;
|
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<{
|
790
|
+
version: Z.ZodDefault<Z.ZodNumber>;
|
791
|
+
}, {
|
792
|
+
locale: Z.ZodObject<{
|
793
|
+
source: Z.ZodEffects<Z.ZodString, string, string>;
|
794
|
+
targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
|
795
|
+
}, "strip", Z.ZodTypeAny, {
|
796
|
+
source: string;
|
797
|
+
targets: string[];
|
798
|
+
}, {
|
799
|
+
source: string;
|
800
|
+
targets: string[];
|
801
|
+
}>;
|
802
|
+
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"]>>>>;
|
803
|
+
}>, {
|
804
|
+
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<{
|
805
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>;
|
806
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodString, "many">>>;
|
807
|
+
}, "strip", Z.ZodTypeAny, {
|
808
|
+
include: string[];
|
809
|
+
exclude?: string[] | undefined;
|
810
|
+
}, {
|
811
|
+
exclude?: string[] | undefined;
|
812
|
+
include?: string[] | undefined;
|
813
|
+
}>>>;
|
814
|
+
}>, {
|
815
|
+
locale: Z.ZodObject<Z.objectUtil.extendShape<{
|
816
|
+
source: Z.ZodEffects<Z.ZodString, string, string>;
|
817
|
+
targets: Z.ZodArray<Z.ZodEffects<Z.ZodString, string, string>, "many">;
|
818
|
+
}, {
|
819
|
+
extraSource: Z.ZodOptional<Z.ZodEffects<Z.ZodString, string, string>>;
|
820
|
+
}>, "strip", Z.ZodTypeAny, {
|
821
|
+
source: string;
|
822
|
+
targets: string[];
|
823
|
+
extraSource?: string | undefined;
|
824
|
+
}, {
|
825
|
+
source: string;
|
826
|
+
targets: string[];
|
827
|
+
extraSource?: string | undefined;
|
828
|
+
}>;
|
829
|
+
}>, {
|
830
|
+
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<{
|
831
|
+
include: Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
832
|
+
path: Z.ZodString;
|
833
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
834
|
+
}, "strip", Z.ZodTypeAny, {
|
835
|
+
path: string;
|
836
|
+
delimiter?: "-" | "_" | null | undefined;
|
837
|
+
}, {
|
838
|
+
path: string;
|
839
|
+
delimiter?: "-" | "_" | null | undefined;
|
840
|
+
}>]>, "many">>;
|
841
|
+
exclude: Z.ZodOptional<Z.ZodDefault<Z.ZodArray<Z.ZodUnion<[Z.ZodString, Z.ZodObject<{
|
842
|
+
path: Z.ZodString;
|
843
|
+
delimiter: Z.ZodOptional<Z.ZodUnion<[Z.ZodLiteral<"-">, Z.ZodLiteral<"_">, Z.ZodLiteral<null>]>>;
|
844
|
+
}, "strip", Z.ZodTypeAny, {
|
845
|
+
path: string;
|
846
|
+
delimiter?: "-" | "_" | null | undefined;
|
847
|
+
}, {
|
848
|
+
path: string;
|
849
|
+
delimiter?: "-" | "_" | null | undefined;
|
850
|
+
}>]>, "many">>>;
|
851
|
+
injectLocale: Z.ZodOptional<Z.ZodArray<Z.ZodString, "many">>;
|
852
|
+
}, "strip", Z.ZodTypeAny, {
|
853
|
+
include: (string | {
|
854
|
+
path: string;
|
855
|
+
delimiter?: "-" | "_" | null | undefined;
|
856
|
+
})[];
|
857
|
+
exclude?: (string | {
|
858
|
+
path: string;
|
859
|
+
delimiter?: "-" | "_" | null | undefined;
|
860
|
+
})[] | undefined;
|
861
|
+
injectLocale?: string[] | undefined;
|
862
|
+
}, {
|
863
|
+
exclude?: (string | {
|
864
|
+
path: string;
|
865
|
+
delimiter?: "-" | "_" | null | undefined;
|
866
|
+
})[] | undefined;
|
867
|
+
include?: (string | {
|
868
|
+
path: string;
|
869
|
+
delimiter?: "-" | "_" | null | undefined;
|
870
|
+
})[] | undefined;
|
871
|
+
injectLocale?: string[] | undefined;
|
872
|
+
}>>>;
|
873
|
+
}>, {
|
874
|
+
$schema: Z.ZodDefault<Z.ZodString>;
|
875
|
+
}>, {
|
876
|
+
provider: Z.ZodOptional<Z.ZodDefault<Z.ZodUnion<[Z.ZodObject<Z.objectUtil.extendShape<{
|
877
|
+
id: Z.ZodString;
|
878
|
+
model: Z.ZodString;
|
879
|
+
prompt: Z.ZodString;
|
880
|
+
baseUrl: Z.ZodOptional<Z.ZodString>;
|
881
|
+
}, {
|
882
|
+
id: Z.ZodLiteral<"lingo">;
|
883
|
+
model: Z.ZodLiteral<"best">;
|
884
|
+
}>, "strip", Z.ZodTypeAny, {
|
885
|
+
id: "lingo";
|
886
|
+
model: "best";
|
887
|
+
prompt: string;
|
888
|
+
baseUrl?: string | undefined;
|
889
|
+
}, {
|
890
|
+
id: "lingo";
|
891
|
+
model: "best";
|
892
|
+
prompt: string;
|
893
|
+
baseUrl?: string | undefined;
|
894
|
+
}>, Z.ZodObject<Z.objectUtil.extendShape<{
|
895
|
+
id: Z.ZodString;
|
896
|
+
model: Z.ZodString;
|
897
|
+
prompt: Z.ZodString;
|
898
|
+
baseUrl: Z.ZodOptional<Z.ZodString>;
|
899
|
+
}, {
|
900
|
+
id: Z.ZodEnum<["openai", "anthropic"]>;
|
901
|
+
}>, "strip", Z.ZodTypeAny, {
|
902
|
+
id: "openai" | "anthropic";
|
903
|
+
model: string;
|
904
|
+
prompt: string;
|
905
|
+
baseUrl?: string | undefined;
|
906
|
+
}, {
|
907
|
+
id: "openai" | "anthropic";
|
908
|
+
model: string;
|
909
|
+
prompt: string;
|
910
|
+
baseUrl?: string | undefined;
|
911
|
+
}>]>>>;
|
912
|
+
}>, {
|
913
|
+
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<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
|
+
}>>>;
|
488
960
|
}>, Z.ZodRawShape>;
|
489
961
|
type I18nConfig = Z.infer<(typeof LATEST_CONFIG_DEFINITION)["schema"]>;
|
490
962
|
declare function parseI18nConfig(rawConfig: unknown): {
|
@@ -504,8 +976,20 @@ declare function parseI18nConfig(rawConfig: unknown): {
|
|
504
976
|
delimiter?: "-" | "_" | null | undefined;
|
505
977
|
})[] | undefined;
|
506
978
|
injectLocale?: string[] | undefined;
|
979
|
+
lockedKeys?: string[] | undefined;
|
507
980
|
}>>;
|
508
981
|
$schema: string;
|
982
|
+
provider?: {
|
983
|
+
id: "lingo";
|
984
|
+
model: "best";
|
985
|
+
prompt: string;
|
986
|
+
baseUrl?: string | undefined;
|
987
|
+
} | {
|
988
|
+
id: "openai" | "anthropic";
|
989
|
+
model: string;
|
990
|
+
prompt: string;
|
991
|
+
baseUrl?: string | undefined;
|
992
|
+
} | undefined;
|
509
993
|
};
|
510
994
|
declare const defaultConfig: {
|
511
995
|
version: number;
|
@@ -524,8 +1008,20 @@ declare const defaultConfig: {
|
|
524
1008
|
delimiter?: "-" | "_" | null | undefined;
|
525
1009
|
})[] | undefined;
|
526
1010
|
injectLocale?: string[] | undefined;
|
1011
|
+
lockedKeys?: string[] | undefined;
|
527
1012
|
}>>;
|
528
1013
|
$schema: string;
|
1014
|
+
provider?: {
|
1015
|
+
id: "lingo";
|
1016
|
+
model: "best";
|
1017
|
+
prompt: string;
|
1018
|
+
baseUrl?: string | undefined;
|
1019
|
+
} | {
|
1020
|
+
id: "openai" | "anthropic";
|
1021
|
+
model: string;
|
1022
|
+
prompt: string;
|
1023
|
+
baseUrl?: string | undefined;
|
1024
|
+
} | undefined;
|
529
1025
|
};
|
530
1026
|
|
531
|
-
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, 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 };
|