@lokascript/i18n 3.3.0 → 4.0.1
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/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +4 -5
- package/dist/browser.d.ts +4 -5
- package/dist/browser.js.map +1 -1
- package/dist/{index-DuIef8O7.d.ts → index-BvvoluMH.d.ts} +31 -47
- package/dist/{index-BykxjYST.d.cts → index-C4L2RKNl.d.cts} +31 -47
- package/dist/index.cjs +19367 -3750
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -258
- package/dist/index.d.ts +34 -258
- package/dist/index.js +19367 -3750
- package/dist/index.js.map +1 -1
- package/dist/lokascript-i18n.min.js.map +1 -1
- package/dist/lokascript-i18n.mjs +27 -45
- package/dist/lokascript-i18n.mjs.map +1 -1
- package/package.json +4 -4
- package/src/browser.ts +4 -7
- package/src/compatibility/browser-tests/grammar-demo.spec.ts +1 -1
- package/src/grammar/index.ts +5 -4
- package/src/grammar/profiles.test.ts +3 -2
- package/src/parser/ar.ts +2 -3
- package/src/parser/de.ts +2 -3
- package/src/parser/es.ts +2 -3
- package/src/parser/fr.ts +2 -3
- package/src/parser/he.ts +2 -3
- package/src/parser/id.ts +2 -3
- package/src/parser/index.ts +4 -6
- package/src/parser/ja.ts +2 -3
- package/src/parser/ko.ts +2 -3
- package/src/parser/locale-manager.ts +2 -6
- package/src/parser/pt.ts +2 -3
- package/src/parser/qu.ts +2 -3
- package/src/parser/sw.ts +2 -3
- package/src/parser/tr.ts +2 -3
- package/src/parser/types.ts +6 -5
- package/src/parser/zh.ts +1 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { I as I18nConfig, T as TranslationOptions, a as TranslationResult, D as Dictionary, V as ValidationResult$1, b as Token } from './types-BYtpqGq3.js';
|
|
2
2
|
export { c as DICTIONARY_CATEGORIES, d as DictionaryCategory, L as LocaleMetadata, e as TokenType, f as TranslationContext, g as ValidationError, h as ValidationWarning, i as findInDictionary, j as forEachCategory, k as getDictionaryCategory, l as isDictionaryCategory, t as translateFromEnglish } from './types-BYtpqGq3.js';
|
|
3
3
|
export { ar, bn, de, dictionaries, en, es, fr, getDictionary, hi, id, isLocaleSupported, it, ja, ko, ms, pl, pt, qu, ru, supportedLocales, sw, th, tl, tr, uk, vi, zh } from './dictionaries/index.js';
|
|
4
|
-
export { A as AdpositionType, E as ENGLISH_COMMANDS, a as ENGLISH_KEYWORDS, G as GrammarRule, b as GrammaticalMarker, K as KeywordProvider, c as KeywordProviderOptions, L as LANGUAGE_FAMILY_DEFAULTS, d as LanguageProfile, e as LocaleManager, M as MorphologyType, P as ParsedElement, f as ParsedStatement, g as PatternMatcher, h as PatternTransform, S as SemanticRole, U as UNIVERSAL_ENGLISH_KEYWORDS, i as UNIVERSAL_PATTERNS, W as WordOrder, j as arDictionary, k as arKeywords, l as arabicProfile, m as bnDictionary, n as bnKeywords, o as chineseProfile, p as createEnglishProvider, q as createKeywordProvider, r as deDictionary, s as deKeywords, t as detectBrowserLocale, u as englishProfile, v as esDictionary, w as esKeywords, x as frDictionary, y as frKeywords, C as getProfile, D as getSupportedLocales, H as hiDictionary, I as hiKeywords, J as idDictionary, N as idKeywords, O as indonesianProfile, Q as insertMarkers, R as itDictionary, T as itKeywords, V as jaDictionary, X as jaKeywords, Y as japaneseProfile, _ as koDictionary, $ as koKeywords, a0 as koreanProfile, a1 as malayProfile, a2 as msDictionary, a3 as msKeywords, a4 as plDictionary, a5 as plKeywords, a7 as profiles, a8 as ptDictionary, a9 as ptKeywords, aa as quDictionary, ab as quKeywords, ac as quechuaProfile, ad as reorderRoles, ae as ruDictionary, af as ruKeywords, ag as spanishProfile, ah as swDictionary, ai as swKeywords, aj as swahiliProfile, ak as thDictionary, al as thKeywords, am as tlDictionary, an as tlKeywords, ao as trDictionary, ap as trKeywords, aq as transformStatement, ar as turkishProfile, as as ukDictionary, at as ukKeywords, au as viDictionary, av as viKeywords, aw as zhDictionary, ax as zhKeywords } from './index-
|
|
4
|
+
export { A as AdpositionType, E as ENGLISH_COMMANDS, a as ENGLISH_KEYWORDS, G as GrammarRule, b as GrammaticalMarker, K as KeywordProvider, c as KeywordProviderOptions, L as LANGUAGE_FAMILY_DEFAULTS, d as LanguageProfile, e as LocaleManager, M as MorphologyType, P as ParsedElement, f as ParsedStatement, g as PatternMatcher, h as PatternTransform, S as SemanticRole, U as UNIVERSAL_ENGLISH_KEYWORDS, i as UNIVERSAL_PATTERNS, W as WordOrder, j as arDictionary, k as arKeywords, l as arabicProfile, m as bnDictionary, n as bnKeywords, o as chineseProfile, p as createEnglishProvider, q as createKeywordProvider, r as deDictionary, s as deKeywords, t as detectBrowserLocale, u as englishProfile, v as esDictionary, w as esKeywords, x as frDictionary, y as frKeywords, C as getProfile, D as getSupportedLocales, H as hiDictionary, I as hiKeywords, J as idDictionary, N as idKeywords, O as indonesianProfile, Q as insertMarkers, R as itDictionary, T as itKeywords, V as jaDictionary, X as jaKeywords, Y as japaneseProfile, _ as koDictionary, $ as koKeywords, a0 as koreanProfile, a1 as malayProfile, a2 as msDictionary, a3 as msKeywords, a4 as plDictionary, a5 as plKeywords, a7 as profiles, a8 as ptDictionary, a9 as ptKeywords, aa as quDictionary, ab as quKeywords, ac as quechuaProfile, ad as reorderRoles, ae as ruDictionary, af as ruKeywords, ag as spanishProfile, ah as swDictionary, ai as swKeywords, aj as swahiliProfile, ak as thDictionary, al as thKeywords, am as tlDictionary, an as tlKeywords, ao as trDictionary, ap as trKeywords, aq as transformStatement, ar as turkishProfile, as as ukDictionary, at as ukKeywords, au as viDictionary, av as viKeywords, aw as zhDictionary, ax as zhKeywords } from './index-BvvoluMH.js';
|
|
5
5
|
export { hyperscriptI18nVitePlugin } from './plugins/vite.js';
|
|
6
6
|
export { HyperscriptI18nWebpackPlugin } from './plugins/webpack.js';
|
|
7
7
|
import { z } from 'zod';
|
|
@@ -468,10 +468,8 @@ interface LLMDocumentation {
|
|
|
468
468
|
*/
|
|
469
469
|
type EvaluationType = 'sync' | 'async' | 'streaming' | 'Context';
|
|
470
470
|
declare const EnhancedI18nInputSchema: z.ZodObject<{
|
|
471
|
-
/** Locale configuration */
|
|
472
471
|
locale: z.ZodString;
|
|
473
472
|
fallbackLocale: z.ZodOptional<z.ZodString>;
|
|
474
|
-
/** Dictionary data for translations */
|
|
475
473
|
dictionaries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
476
474
|
commands: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
477
475
|
modifiers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -480,211 +478,58 @@ declare const EnhancedI18nInputSchema: z.ZodObject<{
|
|
|
480
478
|
temporal: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
481
479
|
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
482
480
|
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
483
|
-
},
|
|
484
|
-
commands: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
485
|
-
modifiers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
486
|
-
events: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
487
|
-
logical: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
488
|
-
temporal: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
489
|
-
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
490
|
-
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
491
|
-
}, z.ZodRecord<z.ZodString, z.ZodString>, "strip">, z.objectInputType<{
|
|
492
|
-
commands: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
493
|
-
modifiers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
494
|
-
events: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
495
|
-
logical: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
496
|
-
temporal: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
497
|
-
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
498
|
-
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
499
|
-
}, z.ZodRecord<z.ZodString, z.ZodString>, "strip">>>>;
|
|
500
|
-
/** Translation options */
|
|
481
|
+
}, z.core.$catchall<z.ZodRecord<z.ZodString, z.ZodString>>>>>;
|
|
501
482
|
options: z.ZodOptional<z.ZodObject<{
|
|
502
483
|
detectLocale: z.ZodDefault<z.ZodBoolean>;
|
|
503
|
-
rtlLocales: z.ZodDefault<z.ZodArray<z.ZodString
|
|
484
|
+
rtlLocales: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
504
485
|
preserveOriginalAttribute: z.ZodOptional<z.ZodString>;
|
|
505
486
|
validate: z.ZodDefault<z.ZodBoolean>;
|
|
506
|
-
},
|
|
507
|
-
validate: boolean;
|
|
508
|
-
detectLocale: boolean;
|
|
509
|
-
rtlLocales: string[];
|
|
510
|
-
preserveOriginalAttribute?: string | undefined;
|
|
511
|
-
}, {
|
|
512
|
-
validate?: boolean | undefined;
|
|
513
|
-
detectLocale?: boolean | undefined;
|
|
514
|
-
rtlLocales?: string[] | undefined;
|
|
515
|
-
preserveOriginalAttribute?: string | undefined;
|
|
516
|
-
}>>;
|
|
517
|
-
/** Context variables for translation */
|
|
487
|
+
}, z.core.$strip>>;
|
|
518
488
|
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
519
|
-
|
|
520
|
-
|
|
489
|
+
environment: z.ZodDefault<z.ZodEnum<{
|
|
490
|
+
frontend: "frontend";
|
|
491
|
+
backend: "backend";
|
|
492
|
+
universal: "universal";
|
|
493
|
+
}>>;
|
|
521
494
|
debug: z.ZodDefault<z.ZodBoolean>;
|
|
522
|
-
},
|
|
523
|
-
locale: string;
|
|
524
|
-
environment: "frontend" | "backend" | "universal";
|
|
525
|
-
debug: boolean;
|
|
526
|
-
options?: {
|
|
527
|
-
validate: boolean;
|
|
528
|
-
detectLocale: boolean;
|
|
529
|
-
rtlLocales: string[];
|
|
530
|
-
preserveOriginalAttribute?: string | undefined;
|
|
531
|
-
} | undefined;
|
|
532
|
-
fallbackLocale?: string | undefined;
|
|
533
|
-
dictionaries?: Record<string, z.objectOutputType<{
|
|
534
|
-
commands: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
535
|
-
modifiers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
536
|
-
events: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
537
|
-
logical: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
538
|
-
temporal: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
539
|
-
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
540
|
-
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
541
|
-
}, z.ZodRecord<z.ZodString, z.ZodString>, "strip">> | undefined;
|
|
542
|
-
variables?: Record<string, unknown> | undefined;
|
|
543
|
-
}, {
|
|
544
|
-
locale: string;
|
|
545
|
-
options?: {
|
|
546
|
-
validate?: boolean | undefined;
|
|
547
|
-
detectLocale?: boolean | undefined;
|
|
548
|
-
rtlLocales?: string[] | undefined;
|
|
549
|
-
preserveOriginalAttribute?: string | undefined;
|
|
550
|
-
} | undefined;
|
|
551
|
-
fallbackLocale?: string | undefined;
|
|
552
|
-
dictionaries?: Record<string, z.objectInputType<{
|
|
553
|
-
commands: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
554
|
-
modifiers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
555
|
-
events: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
556
|
-
logical: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
557
|
-
temporal: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
558
|
-
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
559
|
-
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
560
|
-
}, z.ZodRecord<z.ZodString, z.ZodString>, "strip">> | undefined;
|
|
561
|
-
variables?: Record<string, unknown> | undefined;
|
|
562
|
-
environment?: "frontend" | "backend" | "universal" | undefined;
|
|
563
|
-
debug?: boolean | undefined;
|
|
564
|
-
}>;
|
|
495
|
+
}, z.core.$strip>;
|
|
565
496
|
declare const EnhancedI18nOutputSchema: z.ZodObject<{
|
|
566
|
-
/** Context identifier */
|
|
567
497
|
contextId: z.ZodString;
|
|
568
498
|
timestamp: z.ZodNumber;
|
|
569
499
|
category: z.ZodLiteral<"Universal">;
|
|
570
|
-
capabilities: z.ZodArray<z.ZodString
|
|
571
|
-
state: z.ZodEnum<
|
|
572
|
-
|
|
500
|
+
capabilities: z.ZodArray<z.ZodString>;
|
|
501
|
+
state: z.ZodEnum<{
|
|
502
|
+
error: "error";
|
|
503
|
+
ready: "ready";
|
|
504
|
+
loading: "loading";
|
|
505
|
+
}>;
|
|
573
506
|
translate: z.ZodAny;
|
|
574
507
|
translateHyperscript: z.ZodAny;
|
|
575
508
|
setLocale: z.ZodAny;
|
|
576
509
|
getLocale: z.ZodAny;
|
|
577
510
|
validateTranslation: z.ZodAny;
|
|
578
|
-
/** Locale management */
|
|
579
511
|
locale: z.ZodObject<{
|
|
580
512
|
current: z.ZodString;
|
|
581
513
|
fallback: z.ZodOptional<z.ZodString>;
|
|
582
|
-
direction: z.ZodEnum<
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
fallback?: string | undefined;
|
|
589
|
-
}, {
|
|
590
|
-
direction: "ltr" | "rtl";
|
|
591
|
-
current: string;
|
|
592
|
-
available: string[];
|
|
593
|
-
fallback?: string | undefined;
|
|
594
|
-
}>;
|
|
595
|
-
/** Dictionary access */
|
|
514
|
+
direction: z.ZodEnum<{
|
|
515
|
+
ltr: "ltr";
|
|
516
|
+
rtl: "rtl";
|
|
517
|
+
}>;
|
|
518
|
+
available: z.ZodArray<z.ZodString>;
|
|
519
|
+
}, z.core.$strip>;
|
|
596
520
|
dictionary: z.ZodObject<{
|
|
597
521
|
get: z.ZodAny;
|
|
598
522
|
set: z.ZodAny;
|
|
599
523
|
has: z.ZodAny;
|
|
600
524
|
keys: z.ZodAny;
|
|
601
|
-
},
|
|
602
|
-
keys?: any;
|
|
603
|
-
set?: any;
|
|
604
|
-
get?: any;
|
|
605
|
-
has?: any;
|
|
606
|
-
}, {
|
|
607
|
-
keys?: any;
|
|
608
|
-
set?: any;
|
|
609
|
-
get?: any;
|
|
610
|
-
has?: any;
|
|
611
|
-
}>;
|
|
612
|
-
/** Formatting utilities */
|
|
525
|
+
}, z.core.$strip>;
|
|
613
526
|
format: z.ZodObject<{
|
|
614
527
|
number: z.ZodAny;
|
|
615
528
|
date: z.ZodAny;
|
|
616
529
|
currency: z.ZodAny;
|
|
617
530
|
relative: z.ZodAny;
|
|
618
|
-
},
|
|
619
|
-
|
|
620
|
-
currency?: any;
|
|
621
|
-
relative?: any;
|
|
622
|
-
date?: any;
|
|
623
|
-
}, {
|
|
624
|
-
number?: any;
|
|
625
|
-
currency?: any;
|
|
626
|
-
relative?: any;
|
|
627
|
-
date?: any;
|
|
628
|
-
}>;
|
|
629
|
-
}, "strip", z.ZodTypeAny, {
|
|
630
|
-
category: "Universal";
|
|
631
|
-
locale: {
|
|
632
|
-
direction: "ltr" | "rtl";
|
|
633
|
-
current: string;
|
|
634
|
-
available: string[];
|
|
635
|
-
fallback?: string | undefined;
|
|
636
|
-
};
|
|
637
|
-
dictionary: {
|
|
638
|
-
keys?: any;
|
|
639
|
-
set?: any;
|
|
640
|
-
get?: any;
|
|
641
|
-
has?: any;
|
|
642
|
-
};
|
|
643
|
-
contextId: string;
|
|
644
|
-
timestamp: number;
|
|
645
|
-
capabilities: string[];
|
|
646
|
-
state: "error" | "ready" | "loading";
|
|
647
|
-
format: {
|
|
648
|
-
number?: any;
|
|
649
|
-
currency?: any;
|
|
650
|
-
relative?: any;
|
|
651
|
-
date?: any;
|
|
652
|
-
};
|
|
653
|
-
translate?: any;
|
|
654
|
-
translateHyperscript?: any;
|
|
655
|
-
setLocale?: any;
|
|
656
|
-
getLocale?: any;
|
|
657
|
-
validateTranslation?: any;
|
|
658
|
-
}, {
|
|
659
|
-
category: "Universal";
|
|
660
|
-
locale: {
|
|
661
|
-
direction: "ltr" | "rtl";
|
|
662
|
-
current: string;
|
|
663
|
-
available: string[];
|
|
664
|
-
fallback?: string | undefined;
|
|
665
|
-
};
|
|
666
|
-
dictionary: {
|
|
667
|
-
keys?: any;
|
|
668
|
-
set?: any;
|
|
669
|
-
get?: any;
|
|
670
|
-
has?: any;
|
|
671
|
-
};
|
|
672
|
-
contextId: string;
|
|
673
|
-
timestamp: number;
|
|
674
|
-
capabilities: string[];
|
|
675
|
-
state: "error" | "ready" | "loading";
|
|
676
|
-
format: {
|
|
677
|
-
number?: any;
|
|
678
|
-
currency?: any;
|
|
679
|
-
relative?: any;
|
|
680
|
-
date?: any;
|
|
681
|
-
};
|
|
682
|
-
translate?: any;
|
|
683
|
-
translateHyperscript?: any;
|
|
684
|
-
setLocale?: any;
|
|
685
|
-
getLocale?: any;
|
|
686
|
-
validateTranslation?: any;
|
|
687
|
-
}>;
|
|
531
|
+
}, z.core.$strip>;
|
|
532
|
+
}, z.core.$strip>;
|
|
688
533
|
type EnhancedI18nInput = z.infer<typeof EnhancedI18nInputSchema>;
|
|
689
534
|
type EnhancedI18nOutput = z.infer<typeof EnhancedI18nOutputSchema>;
|
|
690
535
|
declare class TypedI18nContextImplementation {
|
|
@@ -692,10 +537,8 @@ declare class TypedI18nContextImplementation {
|
|
|
692
537
|
readonly category: "Universal";
|
|
693
538
|
readonly description = "Type-safe internationalization context with enhanced validation and LLM integration";
|
|
694
539
|
readonly inputSchema: z.ZodObject<{
|
|
695
|
-
/** Locale configuration */
|
|
696
540
|
locale: z.ZodString;
|
|
697
541
|
fallbackLocale: z.ZodOptional<z.ZodString>;
|
|
698
|
-
/** Dictionary data for translations */
|
|
699
542
|
dictionaries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
700
543
|
commands: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
701
544
|
modifiers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -704,88 +547,21 @@ declare class TypedI18nContextImplementation {
|
|
|
704
547
|
temporal: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
705
548
|
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
706
549
|
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
707
|
-
},
|
|
708
|
-
commands: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
709
|
-
modifiers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
710
|
-
events: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
711
|
-
logical: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
712
|
-
temporal: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
713
|
-
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
714
|
-
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
715
|
-
}, z.ZodRecord<z.ZodString, z.ZodString>, "strip">, z.objectInputType<{
|
|
716
|
-
commands: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
717
|
-
modifiers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
718
|
-
events: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
719
|
-
logical: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
720
|
-
temporal: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
721
|
-
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
722
|
-
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
723
|
-
}, z.ZodRecord<z.ZodString, z.ZodString>, "strip">>>>;
|
|
724
|
-
/** Translation options */
|
|
550
|
+
}, z.core.$catchall<z.ZodRecord<z.ZodString, z.ZodString>>>>>;
|
|
725
551
|
options: z.ZodOptional<z.ZodObject<{
|
|
726
552
|
detectLocale: z.ZodDefault<z.ZodBoolean>;
|
|
727
|
-
rtlLocales: z.ZodDefault<z.ZodArray<z.ZodString
|
|
553
|
+
rtlLocales: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
728
554
|
preserveOriginalAttribute: z.ZodOptional<z.ZodString>;
|
|
729
555
|
validate: z.ZodDefault<z.ZodBoolean>;
|
|
730
|
-
},
|
|
731
|
-
validate: boolean;
|
|
732
|
-
detectLocale: boolean;
|
|
733
|
-
rtlLocales: string[];
|
|
734
|
-
preserveOriginalAttribute?: string | undefined;
|
|
735
|
-
}, {
|
|
736
|
-
validate?: boolean | undefined;
|
|
737
|
-
detectLocale?: boolean | undefined;
|
|
738
|
-
rtlLocales?: string[] | undefined;
|
|
739
|
-
preserveOriginalAttribute?: string | undefined;
|
|
740
|
-
}>>;
|
|
741
|
-
/** Context variables for translation */
|
|
556
|
+
}, z.core.$strip>>;
|
|
742
557
|
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
743
|
-
|
|
744
|
-
|
|
558
|
+
environment: z.ZodDefault<z.ZodEnum<{
|
|
559
|
+
frontend: "frontend";
|
|
560
|
+
backend: "backend";
|
|
561
|
+
universal: "universal";
|
|
562
|
+
}>>;
|
|
745
563
|
debug: z.ZodDefault<z.ZodBoolean>;
|
|
746
|
-
},
|
|
747
|
-
locale: string;
|
|
748
|
-
environment: "frontend" | "backend" | "universal";
|
|
749
|
-
debug: boolean;
|
|
750
|
-
options?: {
|
|
751
|
-
validate: boolean;
|
|
752
|
-
detectLocale: boolean;
|
|
753
|
-
rtlLocales: string[];
|
|
754
|
-
preserveOriginalAttribute?: string | undefined;
|
|
755
|
-
} | undefined;
|
|
756
|
-
fallbackLocale?: string | undefined;
|
|
757
|
-
dictionaries?: Record<string, z.objectOutputType<{
|
|
758
|
-
commands: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
759
|
-
modifiers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
760
|
-
events: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
761
|
-
logical: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
762
|
-
temporal: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
763
|
-
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
764
|
-
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
765
|
-
}, z.ZodRecord<z.ZodString, z.ZodString>, "strip">> | undefined;
|
|
766
|
-
variables?: Record<string, unknown> | undefined;
|
|
767
|
-
}, {
|
|
768
|
-
locale: string;
|
|
769
|
-
options?: {
|
|
770
|
-
validate?: boolean | undefined;
|
|
771
|
-
detectLocale?: boolean | undefined;
|
|
772
|
-
rtlLocales?: string[] | undefined;
|
|
773
|
-
preserveOriginalAttribute?: string | undefined;
|
|
774
|
-
} | undefined;
|
|
775
|
-
fallbackLocale?: string | undefined;
|
|
776
|
-
dictionaries?: Record<string, z.objectInputType<{
|
|
777
|
-
commands: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
778
|
-
modifiers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
779
|
-
events: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
780
|
-
logical: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
781
|
-
temporal: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
782
|
-
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
783
|
-
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
784
|
-
}, z.ZodRecord<z.ZodString, z.ZodString>, "strip">> | undefined;
|
|
785
|
-
variables?: Record<string, unknown> | undefined;
|
|
786
|
-
environment?: "frontend" | "backend" | "universal" | undefined;
|
|
787
|
-
debug?: boolean | undefined;
|
|
788
|
-
}>;
|
|
564
|
+
}, z.core.$strip>;
|
|
789
565
|
readonly outputType: EvaluationType;
|
|
790
566
|
private evaluationHistory;
|
|
791
567
|
readonly metadata: ContextMetadata;
|