@lokascript/i18n 2.0.0 → 2.2.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/dist/browser.cjs +45 -28
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +2 -2
- package/dist/browser.d.ts +2 -2
- package/dist/browser.js +45 -28
- package/dist/browser.js.map +1 -1
- package/dist/dictionaries/index.cjs +45 -28
- package/dist/dictionaries/index.cjs.map +1 -1
- package/dist/dictionaries/index.d.cts +1 -1
- package/dist/dictionaries/index.d.ts +1 -1
- package/dist/dictionaries/index.js +45 -28
- package/dist/dictionaries/index.js.map +1 -1
- package/dist/index.cjs +45 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +37 -37
- package/dist/index.d.ts +37 -37
- package/dist/index.js +45 -28
- package/dist/index.js.map +1 -1
- package/dist/lokascript-i18n.min.js +1 -1
- package/dist/lokascript-i18n.min.js.map +1 -1
- package/dist/lokascript-i18n.mjs +49 -33
- package/dist/lokascript-i18n.mjs.map +1 -1
- package/dist/plugins/vite.cjs +45 -28
- package/dist/plugins/vite.cjs.map +1 -1
- package/dist/plugins/vite.js +45 -28
- package/dist/plugins/vite.js.map +1 -1
- package/dist/plugins/webpack.cjs +45 -28
- package/dist/plugins/webpack.cjs.map +1 -1
- package/dist/plugins/webpack.js +45 -28
- package/dist/plugins/webpack.js.map +1 -1
- package/dist/{transformer-DN_HqdDB.d.ts → transformer-B0zy-kti.d.ts} +2 -14
- package/dist/{transformer-kXwlqa5b.d.cts → transformer-CzY_vHU0.d.cts} +2 -14
- package/dist/{types-naTJIIaT.d.cts → types-BYtpqGq3.d.cts} +1 -1
- package/dist/{types-naTJIIaT.d.ts → types-BYtpqGq3.d.ts} +1 -1
- package/package.json +3 -3
- package/src/dictionaries/bn.ts +23 -8
- package/src/dictionaries/he.ts +101 -0
- package/src/dictionaries/th.ts +23 -8
- package/src/dictionaries/vi.ts +17 -30
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as I18nConfig, T as TranslationOptions, a as TranslationResult, D as Dictionary, V as ValidationResult$1, b as Token } from './types-
|
|
2
|
-
export {
|
|
1
|
+
import { I as I18nConfig, T as TranslationOptions, a as TranslationResult, D as Dictionary, V as ValidationResult$1, b as Token } from './types-BYtpqGq3.cjs';
|
|
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.cjs';
|
|
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.cjs';
|
|
4
|
-
export {
|
|
4
|
+
export { A as AdpositionType, E as ENGLISH_COMMANDS, a as ENGLISH_KEYWORDS, G as GrammarRule, b as GrammarTransformer, c as GrammaticalMarker, K as KeywordProvider, d as KeywordProviderOptions, L as LANGUAGE_FAMILY_DEFAULTS, e as LanguageProfile, f as LocaleManager, M as MorphologyType, P as ParsedElement, g as ParsedStatement, h as PatternMatcher, i as PatternTransform, S as SemanticRole, U as UNIVERSAL_ENGLISH_KEYWORDS, j as UNIVERSAL_PATTERNS, W as WordOrder, k as arDictionary, l as arKeywords, m as arabicProfile, n as bnDictionary, o as bnKeywords, p as chineseProfile, q as createEnglishProvider, r as createKeywordProvider, s as deDictionary, t as deKeywords, u as detectBrowserLocale, v as englishProfile, w as esDictionary, x as esKeywords, y as frDictionary, z as frKeywords, D as getProfile, F as getSupportedLocales, H as grammarExamples, I as hiDictionary, J as hiKeywords, N as idDictionary, O as idKeywords, Q as indonesianProfile, R as insertMarkers, T as itDictionary, V as itKeywords, X as jaDictionary, Y as jaKeywords, Z as japaneseProfile, $ as koDictionary, a0 as koKeywords, a1 as koreanProfile, a2 as msDictionary, a3 as msKeywords, a4 as parseStatement, a5 as plDictionary, a6 as plKeywords, a8 as profiles, a9 as ptDictionary, aa as ptKeywords, ab as quDictionary, ac as quKeywords, ad as quechuaProfile, ae as reorderRoles, af as ruDictionary, ag as ruKeywords, ah as spanishProfile, ai as swDictionary, aj as swKeywords, ak as swahiliProfile, al as thDictionary, am as thKeywords, an as tlDictionary, ao as tlKeywords, ap as toEnglish, aq as toLocale, ar as trDictionary, as as trKeywords, at as transformStatement, au as translate, av as turkishProfile, aw as ukDictionary, ax as ukKeywords, ay as viDictionary, az as viKeywords, aA as zhDictionary, aB as zhKeywords } from './transformer-CzY_vHU0.cjs';
|
|
5
5
|
export { hyperscriptI18nVitePlugin } from './plugins/vite.cjs';
|
|
6
6
|
export { HyperscriptI18nWebpackPlugin } from './plugins/webpack.cjs';
|
|
7
7
|
import { z } from 'zod';
|
|
@@ -504,15 +504,15 @@ declare const EnhancedI18nInputSchema: z.ZodObject<{
|
|
|
504
504
|
preserveOriginalAttribute: z.ZodOptional<z.ZodString>;
|
|
505
505
|
validate: z.ZodDefault<z.ZodBoolean>;
|
|
506
506
|
}, "strip", z.ZodTypeAny, {
|
|
507
|
-
validate: boolean;
|
|
508
507
|
detectLocale: boolean;
|
|
509
508
|
rtlLocales: string[];
|
|
509
|
+
validate: boolean;
|
|
510
510
|
preserveOriginalAttribute?: string | undefined;
|
|
511
511
|
}, {
|
|
512
|
-
validate?: boolean | undefined;
|
|
513
512
|
detectLocale?: boolean | undefined;
|
|
514
513
|
rtlLocales?: string[] | undefined;
|
|
515
514
|
preserveOriginalAttribute?: string | undefined;
|
|
515
|
+
validate?: boolean | undefined;
|
|
516
516
|
}>>;
|
|
517
517
|
/** Context variables for translation */
|
|
518
518
|
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -523,12 +523,6 @@ declare const EnhancedI18nInputSchema: z.ZodObject<{
|
|
|
523
523
|
locale: string;
|
|
524
524
|
environment: "frontend" | "backend" | "universal";
|
|
525
525
|
debug: boolean;
|
|
526
|
-
options?: {
|
|
527
|
-
validate: boolean;
|
|
528
|
-
detectLocale: boolean;
|
|
529
|
-
rtlLocales: string[];
|
|
530
|
-
preserveOriginalAttribute?: string | undefined;
|
|
531
|
-
} | undefined;
|
|
532
526
|
fallbackLocale?: string | undefined;
|
|
533
527
|
dictionaries?: Record<string, z.objectOutputType<{
|
|
534
528
|
commands: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -539,15 +533,15 @@ declare const EnhancedI18nInputSchema: z.ZodObject<{
|
|
|
539
533
|
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
540
534
|
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
541
535
|
}, z.ZodRecord<z.ZodString, z.ZodString>, "strip">> | undefined;
|
|
542
|
-
variables?: Record<string, unknown> | undefined;
|
|
543
|
-
}, {
|
|
544
|
-
locale: string;
|
|
545
536
|
options?: {
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
537
|
+
detectLocale: boolean;
|
|
538
|
+
rtlLocales: string[];
|
|
539
|
+
validate: boolean;
|
|
549
540
|
preserveOriginalAttribute?: string | undefined;
|
|
550
541
|
} | undefined;
|
|
542
|
+
variables?: Record<string, unknown> | undefined;
|
|
543
|
+
}, {
|
|
544
|
+
locale: string;
|
|
551
545
|
fallbackLocale?: string | undefined;
|
|
552
546
|
dictionaries?: Record<string, z.objectInputType<{
|
|
553
547
|
commands: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -558,6 +552,12 @@ declare const EnhancedI18nInputSchema: z.ZodObject<{
|
|
|
558
552
|
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
559
553
|
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
560
554
|
}, z.ZodRecord<z.ZodString, z.ZodString>, "strip">> | undefined;
|
|
555
|
+
options?: {
|
|
556
|
+
detectLocale?: boolean | undefined;
|
|
557
|
+
rtlLocales?: string[] | undefined;
|
|
558
|
+
preserveOriginalAttribute?: string | undefined;
|
|
559
|
+
validate?: boolean | undefined;
|
|
560
|
+
} | undefined;
|
|
561
561
|
variables?: Record<string, unknown> | undefined;
|
|
562
562
|
environment?: "frontend" | "backend" | "universal" | undefined;
|
|
563
563
|
debug?: boolean | undefined;
|
|
@@ -599,15 +599,15 @@ declare const EnhancedI18nOutputSchema: z.ZodObject<{
|
|
|
599
599
|
has: z.ZodAny;
|
|
600
600
|
keys: z.ZodAny;
|
|
601
601
|
}, "strip", z.ZodTypeAny, {
|
|
602
|
-
keys?: any;
|
|
603
602
|
set?: any;
|
|
604
603
|
get?: any;
|
|
605
604
|
has?: any;
|
|
606
|
-
}, {
|
|
607
605
|
keys?: any;
|
|
606
|
+
}, {
|
|
608
607
|
set?: any;
|
|
609
608
|
get?: any;
|
|
610
609
|
has?: any;
|
|
610
|
+
keys?: any;
|
|
611
611
|
}>;
|
|
612
612
|
/** Formatting utilities */
|
|
613
613
|
format: z.ZodObject<{
|
|
@@ -627,18 +627,18 @@ declare const EnhancedI18nOutputSchema: z.ZodObject<{
|
|
|
627
627
|
date?: any;
|
|
628
628
|
}>;
|
|
629
629
|
}, "strip", z.ZodTypeAny, {
|
|
630
|
-
category: "Universal";
|
|
631
630
|
locale: {
|
|
632
631
|
direction: "ltr" | "rtl";
|
|
633
632
|
current: string;
|
|
634
633
|
available: string[];
|
|
635
634
|
fallback?: string | undefined;
|
|
636
635
|
};
|
|
636
|
+
category: "Universal";
|
|
637
637
|
dictionary: {
|
|
638
|
-
keys?: any;
|
|
639
638
|
set?: any;
|
|
640
639
|
get?: any;
|
|
641
640
|
has?: any;
|
|
641
|
+
keys?: any;
|
|
642
642
|
};
|
|
643
643
|
contextId: string;
|
|
644
644
|
timestamp: number;
|
|
@@ -656,18 +656,18 @@ declare const EnhancedI18nOutputSchema: z.ZodObject<{
|
|
|
656
656
|
getLocale?: any;
|
|
657
657
|
validateTranslation?: any;
|
|
658
658
|
}, {
|
|
659
|
-
category: "Universal";
|
|
660
659
|
locale: {
|
|
661
660
|
direction: "ltr" | "rtl";
|
|
662
661
|
current: string;
|
|
663
662
|
available: string[];
|
|
664
663
|
fallback?: string | undefined;
|
|
665
664
|
};
|
|
665
|
+
category: "Universal";
|
|
666
666
|
dictionary: {
|
|
667
|
-
keys?: any;
|
|
668
667
|
set?: any;
|
|
669
668
|
get?: any;
|
|
670
669
|
has?: any;
|
|
670
|
+
keys?: any;
|
|
671
671
|
};
|
|
672
672
|
contextId: string;
|
|
673
673
|
timestamp: number;
|
|
@@ -728,15 +728,15 @@ declare class TypedI18nContextImplementation {
|
|
|
728
728
|
preserveOriginalAttribute: z.ZodOptional<z.ZodString>;
|
|
729
729
|
validate: z.ZodDefault<z.ZodBoolean>;
|
|
730
730
|
}, "strip", z.ZodTypeAny, {
|
|
731
|
-
validate: boolean;
|
|
732
731
|
detectLocale: boolean;
|
|
733
732
|
rtlLocales: string[];
|
|
733
|
+
validate: boolean;
|
|
734
734
|
preserveOriginalAttribute?: string | undefined;
|
|
735
735
|
}, {
|
|
736
|
-
validate?: boolean | undefined;
|
|
737
736
|
detectLocale?: boolean | undefined;
|
|
738
737
|
rtlLocales?: string[] | undefined;
|
|
739
738
|
preserveOriginalAttribute?: string | undefined;
|
|
739
|
+
validate?: boolean | undefined;
|
|
740
740
|
}>>;
|
|
741
741
|
/** Context variables for translation */
|
|
742
742
|
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -747,12 +747,6 @@ declare class TypedI18nContextImplementation {
|
|
|
747
747
|
locale: string;
|
|
748
748
|
environment: "frontend" | "backend" | "universal";
|
|
749
749
|
debug: boolean;
|
|
750
|
-
options?: {
|
|
751
|
-
validate: boolean;
|
|
752
|
-
detectLocale: boolean;
|
|
753
|
-
rtlLocales: string[];
|
|
754
|
-
preserveOriginalAttribute?: string | undefined;
|
|
755
|
-
} | undefined;
|
|
756
750
|
fallbackLocale?: string | undefined;
|
|
757
751
|
dictionaries?: Record<string, z.objectOutputType<{
|
|
758
752
|
commands: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -763,15 +757,15 @@ declare class TypedI18nContextImplementation {
|
|
|
763
757
|
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
764
758
|
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
765
759
|
}, z.ZodRecord<z.ZodString, z.ZodString>, "strip">> | undefined;
|
|
766
|
-
variables?: Record<string, unknown> | undefined;
|
|
767
|
-
}, {
|
|
768
|
-
locale: string;
|
|
769
760
|
options?: {
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
761
|
+
detectLocale: boolean;
|
|
762
|
+
rtlLocales: string[];
|
|
763
|
+
validate: boolean;
|
|
773
764
|
preserveOriginalAttribute?: string | undefined;
|
|
774
765
|
} | undefined;
|
|
766
|
+
variables?: Record<string, unknown> | undefined;
|
|
767
|
+
}, {
|
|
768
|
+
locale: string;
|
|
775
769
|
fallbackLocale?: string | undefined;
|
|
776
770
|
dictionaries?: Record<string, z.objectInputType<{
|
|
777
771
|
commands: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -782,6 +776,12 @@ declare class TypedI18nContextImplementation {
|
|
|
782
776
|
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
783
777
|
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
784
778
|
}, z.ZodRecord<z.ZodString, z.ZodString>, "strip">> | undefined;
|
|
779
|
+
options?: {
|
|
780
|
+
detectLocale?: boolean | undefined;
|
|
781
|
+
rtlLocales?: string[] | undefined;
|
|
782
|
+
preserveOriginalAttribute?: string | undefined;
|
|
783
|
+
validate?: boolean | undefined;
|
|
784
|
+
} | undefined;
|
|
785
785
|
variables?: Record<string, unknown> | undefined;
|
|
786
786
|
environment?: "frontend" | "backend" | "universal" | undefined;
|
|
787
787
|
debug?: boolean | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as I18nConfig, T as TranslationOptions, a as TranslationResult, D as Dictionary, V as ValidationResult$1, b as Token } from './types-
|
|
2
|
-
export {
|
|
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
|
+
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 {
|
|
4
|
+
export { A as AdpositionType, E as ENGLISH_COMMANDS, a as ENGLISH_KEYWORDS, G as GrammarRule, b as GrammarTransformer, c as GrammaticalMarker, K as KeywordProvider, d as KeywordProviderOptions, L as LANGUAGE_FAMILY_DEFAULTS, e as LanguageProfile, f as LocaleManager, M as MorphologyType, P as ParsedElement, g as ParsedStatement, h as PatternMatcher, i as PatternTransform, S as SemanticRole, U as UNIVERSAL_ENGLISH_KEYWORDS, j as UNIVERSAL_PATTERNS, W as WordOrder, k as arDictionary, l as arKeywords, m as arabicProfile, n as bnDictionary, o as bnKeywords, p as chineseProfile, q as createEnglishProvider, r as createKeywordProvider, s as deDictionary, t as deKeywords, u as detectBrowserLocale, v as englishProfile, w as esDictionary, x as esKeywords, y as frDictionary, z as frKeywords, D as getProfile, F as getSupportedLocales, H as grammarExamples, I as hiDictionary, J as hiKeywords, N as idDictionary, O as idKeywords, Q as indonesianProfile, R as insertMarkers, T as itDictionary, V as itKeywords, X as jaDictionary, Y as jaKeywords, Z as japaneseProfile, $ as koDictionary, a0 as koKeywords, a1 as koreanProfile, a2 as msDictionary, a3 as msKeywords, a4 as parseStatement, a5 as plDictionary, a6 as plKeywords, a8 as profiles, a9 as ptDictionary, aa as ptKeywords, ab as quDictionary, ac as quKeywords, ad as quechuaProfile, ae as reorderRoles, af as ruDictionary, ag as ruKeywords, ah as spanishProfile, ai as swDictionary, aj as swKeywords, ak as swahiliProfile, al as thDictionary, am as thKeywords, an as tlDictionary, ao as tlKeywords, ap as toEnglish, aq as toLocale, ar as trDictionary, as as trKeywords, at as transformStatement, au as translate, av as turkishProfile, aw as ukDictionary, ax as ukKeywords, ay as viDictionary, az as viKeywords, aA as zhDictionary, aB as zhKeywords } from './transformer-B0zy-kti.js';
|
|
5
5
|
export { hyperscriptI18nVitePlugin } from './plugins/vite.js';
|
|
6
6
|
export { HyperscriptI18nWebpackPlugin } from './plugins/webpack.js';
|
|
7
7
|
import { z } from 'zod';
|
|
@@ -504,15 +504,15 @@ declare const EnhancedI18nInputSchema: z.ZodObject<{
|
|
|
504
504
|
preserveOriginalAttribute: z.ZodOptional<z.ZodString>;
|
|
505
505
|
validate: z.ZodDefault<z.ZodBoolean>;
|
|
506
506
|
}, "strip", z.ZodTypeAny, {
|
|
507
|
-
validate: boolean;
|
|
508
507
|
detectLocale: boolean;
|
|
509
508
|
rtlLocales: string[];
|
|
509
|
+
validate: boolean;
|
|
510
510
|
preserveOriginalAttribute?: string | undefined;
|
|
511
511
|
}, {
|
|
512
|
-
validate?: boolean | undefined;
|
|
513
512
|
detectLocale?: boolean | undefined;
|
|
514
513
|
rtlLocales?: string[] | undefined;
|
|
515
514
|
preserveOriginalAttribute?: string | undefined;
|
|
515
|
+
validate?: boolean | undefined;
|
|
516
516
|
}>>;
|
|
517
517
|
/** Context variables for translation */
|
|
518
518
|
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -523,12 +523,6 @@ declare const EnhancedI18nInputSchema: z.ZodObject<{
|
|
|
523
523
|
locale: string;
|
|
524
524
|
environment: "frontend" | "backend" | "universal";
|
|
525
525
|
debug: boolean;
|
|
526
|
-
options?: {
|
|
527
|
-
validate: boolean;
|
|
528
|
-
detectLocale: boolean;
|
|
529
|
-
rtlLocales: string[];
|
|
530
|
-
preserveOriginalAttribute?: string | undefined;
|
|
531
|
-
} | undefined;
|
|
532
526
|
fallbackLocale?: string | undefined;
|
|
533
527
|
dictionaries?: Record<string, z.objectOutputType<{
|
|
534
528
|
commands: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -539,15 +533,15 @@ declare const EnhancedI18nInputSchema: z.ZodObject<{
|
|
|
539
533
|
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
540
534
|
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
541
535
|
}, z.ZodRecord<z.ZodString, z.ZodString>, "strip">> | undefined;
|
|
542
|
-
variables?: Record<string, unknown> | undefined;
|
|
543
|
-
}, {
|
|
544
|
-
locale: string;
|
|
545
536
|
options?: {
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
537
|
+
detectLocale: boolean;
|
|
538
|
+
rtlLocales: string[];
|
|
539
|
+
validate: boolean;
|
|
549
540
|
preserveOriginalAttribute?: string | undefined;
|
|
550
541
|
} | undefined;
|
|
542
|
+
variables?: Record<string, unknown> | undefined;
|
|
543
|
+
}, {
|
|
544
|
+
locale: string;
|
|
551
545
|
fallbackLocale?: string | undefined;
|
|
552
546
|
dictionaries?: Record<string, z.objectInputType<{
|
|
553
547
|
commands: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -558,6 +552,12 @@ declare const EnhancedI18nInputSchema: z.ZodObject<{
|
|
|
558
552
|
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
559
553
|
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
560
554
|
}, z.ZodRecord<z.ZodString, z.ZodString>, "strip">> | undefined;
|
|
555
|
+
options?: {
|
|
556
|
+
detectLocale?: boolean | undefined;
|
|
557
|
+
rtlLocales?: string[] | undefined;
|
|
558
|
+
preserveOriginalAttribute?: string | undefined;
|
|
559
|
+
validate?: boolean | undefined;
|
|
560
|
+
} | undefined;
|
|
561
561
|
variables?: Record<string, unknown> | undefined;
|
|
562
562
|
environment?: "frontend" | "backend" | "universal" | undefined;
|
|
563
563
|
debug?: boolean | undefined;
|
|
@@ -599,15 +599,15 @@ declare const EnhancedI18nOutputSchema: z.ZodObject<{
|
|
|
599
599
|
has: z.ZodAny;
|
|
600
600
|
keys: z.ZodAny;
|
|
601
601
|
}, "strip", z.ZodTypeAny, {
|
|
602
|
-
keys?: any;
|
|
603
602
|
set?: any;
|
|
604
603
|
get?: any;
|
|
605
604
|
has?: any;
|
|
606
|
-
}, {
|
|
607
605
|
keys?: any;
|
|
606
|
+
}, {
|
|
608
607
|
set?: any;
|
|
609
608
|
get?: any;
|
|
610
609
|
has?: any;
|
|
610
|
+
keys?: any;
|
|
611
611
|
}>;
|
|
612
612
|
/** Formatting utilities */
|
|
613
613
|
format: z.ZodObject<{
|
|
@@ -627,18 +627,18 @@ declare const EnhancedI18nOutputSchema: z.ZodObject<{
|
|
|
627
627
|
date?: any;
|
|
628
628
|
}>;
|
|
629
629
|
}, "strip", z.ZodTypeAny, {
|
|
630
|
-
category: "Universal";
|
|
631
630
|
locale: {
|
|
632
631
|
direction: "ltr" | "rtl";
|
|
633
632
|
current: string;
|
|
634
633
|
available: string[];
|
|
635
634
|
fallback?: string | undefined;
|
|
636
635
|
};
|
|
636
|
+
category: "Universal";
|
|
637
637
|
dictionary: {
|
|
638
|
-
keys?: any;
|
|
639
638
|
set?: any;
|
|
640
639
|
get?: any;
|
|
641
640
|
has?: any;
|
|
641
|
+
keys?: any;
|
|
642
642
|
};
|
|
643
643
|
contextId: string;
|
|
644
644
|
timestamp: number;
|
|
@@ -656,18 +656,18 @@ declare const EnhancedI18nOutputSchema: z.ZodObject<{
|
|
|
656
656
|
getLocale?: any;
|
|
657
657
|
validateTranslation?: any;
|
|
658
658
|
}, {
|
|
659
|
-
category: "Universal";
|
|
660
659
|
locale: {
|
|
661
660
|
direction: "ltr" | "rtl";
|
|
662
661
|
current: string;
|
|
663
662
|
available: string[];
|
|
664
663
|
fallback?: string | undefined;
|
|
665
664
|
};
|
|
665
|
+
category: "Universal";
|
|
666
666
|
dictionary: {
|
|
667
|
-
keys?: any;
|
|
668
667
|
set?: any;
|
|
669
668
|
get?: any;
|
|
670
669
|
has?: any;
|
|
670
|
+
keys?: any;
|
|
671
671
|
};
|
|
672
672
|
contextId: string;
|
|
673
673
|
timestamp: number;
|
|
@@ -728,15 +728,15 @@ declare class TypedI18nContextImplementation {
|
|
|
728
728
|
preserveOriginalAttribute: z.ZodOptional<z.ZodString>;
|
|
729
729
|
validate: z.ZodDefault<z.ZodBoolean>;
|
|
730
730
|
}, "strip", z.ZodTypeAny, {
|
|
731
|
-
validate: boolean;
|
|
732
731
|
detectLocale: boolean;
|
|
733
732
|
rtlLocales: string[];
|
|
733
|
+
validate: boolean;
|
|
734
734
|
preserveOriginalAttribute?: string | undefined;
|
|
735
735
|
}, {
|
|
736
|
-
validate?: boolean | undefined;
|
|
737
736
|
detectLocale?: boolean | undefined;
|
|
738
737
|
rtlLocales?: string[] | undefined;
|
|
739
738
|
preserveOriginalAttribute?: string | undefined;
|
|
739
|
+
validate?: boolean | undefined;
|
|
740
740
|
}>>;
|
|
741
741
|
/** Context variables for translation */
|
|
742
742
|
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -747,12 +747,6 @@ declare class TypedI18nContextImplementation {
|
|
|
747
747
|
locale: string;
|
|
748
748
|
environment: "frontend" | "backend" | "universal";
|
|
749
749
|
debug: boolean;
|
|
750
|
-
options?: {
|
|
751
|
-
validate: boolean;
|
|
752
|
-
detectLocale: boolean;
|
|
753
|
-
rtlLocales: string[];
|
|
754
|
-
preserveOriginalAttribute?: string | undefined;
|
|
755
|
-
} | undefined;
|
|
756
750
|
fallbackLocale?: string | undefined;
|
|
757
751
|
dictionaries?: Record<string, z.objectOutputType<{
|
|
758
752
|
commands: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -763,15 +757,15 @@ declare class TypedI18nContextImplementation {
|
|
|
763
757
|
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
764
758
|
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
765
759
|
}, z.ZodRecord<z.ZodString, z.ZodString>, "strip">> | undefined;
|
|
766
|
-
variables?: Record<string, unknown> | undefined;
|
|
767
|
-
}, {
|
|
768
|
-
locale: string;
|
|
769
760
|
options?: {
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
761
|
+
detectLocale: boolean;
|
|
762
|
+
rtlLocales: string[];
|
|
763
|
+
validate: boolean;
|
|
773
764
|
preserveOriginalAttribute?: string | undefined;
|
|
774
765
|
} | undefined;
|
|
766
|
+
variables?: Record<string, unknown> | undefined;
|
|
767
|
+
}, {
|
|
768
|
+
locale: string;
|
|
775
769
|
fallbackLocale?: string | undefined;
|
|
776
770
|
dictionaries?: Record<string, z.objectInputType<{
|
|
777
771
|
commands: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -782,6 +776,12 @@ declare class TypedI18nContextImplementation {
|
|
|
782
776
|
values: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
783
777
|
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
784
778
|
}, z.ZodRecord<z.ZodString, z.ZodString>, "strip">> | undefined;
|
|
779
|
+
options?: {
|
|
780
|
+
detectLocale?: boolean | undefined;
|
|
781
|
+
rtlLocales?: string[] | undefined;
|
|
782
|
+
preserveOriginalAttribute?: string | undefined;
|
|
783
|
+
validate?: boolean | undefined;
|
|
784
|
+
} | undefined;
|
|
785
785
|
variables?: Record<string, unknown> | undefined;
|
|
786
786
|
environment?: "frontend" | "backend" | "universal" | undefined;
|
|
787
787
|
debug?: boolean | undefined;
|
package/dist/index.js
CHANGED
|
@@ -2970,12 +2970,10 @@ var it = {
|
|
|
2970
2970
|
// src/dictionaries/vi.ts
|
|
2971
2971
|
var vi = {
|
|
2972
2972
|
commands: {
|
|
2973
|
-
// Event handling
|
|
2974
2973
|
on: "khi",
|
|
2975
2974
|
tell: "n\xF3i v\u1EDBi",
|
|
2976
2975
|
trigger: "k\xEDch ho\u1EA1t",
|
|
2977
2976
|
send: "g\u1EEDi",
|
|
2978
|
-
// DOM manipulation
|
|
2979
2977
|
take: "l\u1EA5y",
|
|
2980
2978
|
put: "\u0111\u1EB7t",
|
|
2981
2979
|
set: "g\xE1n",
|
|
@@ -2985,7 +2983,6 @@ var vi = {
|
|
|
2985
2983
|
toggle: "chuy\u1EC3n \u0111\u1ED5i",
|
|
2986
2984
|
hide: "\u1EA9n",
|
|
2987
2985
|
show: "hi\u1EC3n th\u1ECB",
|
|
2988
|
-
// Control flow
|
|
2989
2986
|
if: "n\u1EBFu",
|
|
2990
2987
|
unless: "tr\u1EEB khi",
|
|
2991
2988
|
repeat: "l\u1EB7p l\u1EA1i",
|
|
@@ -2995,46 +2992,35 @@ var vi = {
|
|
|
2995
2992
|
continue: "ti\u1EBFp t\u1EE5c",
|
|
2996
2993
|
break: "d\u1EEBng",
|
|
2997
2994
|
halt: "d\u1EEBng l\u1EA1i",
|
|
2998
|
-
// Async
|
|
2999
2995
|
wait: "ch\u1EDD",
|
|
3000
2996
|
fetch: "t\u1EA3i",
|
|
3001
2997
|
call: "g\u1ECDi",
|
|
3002
2998
|
return: "tr\u1EA3 v\u1EC1",
|
|
3003
|
-
// Other commands
|
|
3004
2999
|
make: "t\u1EA1o",
|
|
3005
3000
|
log: "in ra",
|
|
3006
3001
|
throw: "n\xE9m",
|
|
3007
3002
|
catch: "b\u1EAFt",
|
|
3008
3003
|
measure: "\u0111o l\u01B0\u1EDDng",
|
|
3009
3004
|
transition: "chuy\u1EC3n ti\u1EBFp",
|
|
3010
|
-
// Data Commands
|
|
3011
3005
|
increment: "t\u0103ng",
|
|
3012
3006
|
decrement: "gi\u1EA3m",
|
|
3013
3007
|
default: "m\u1EB7c \u0111\u1ECBnh",
|
|
3014
|
-
// Navigation Commands
|
|
3015
3008
|
go: "\u0111i \u0111\u1EBFn",
|
|
3016
3009
|
pushUrl: "pushUrl",
|
|
3017
3010
|
replaceUrl: "thayTh\u1EBFUrl",
|
|
3018
|
-
// Utility Commands
|
|
3019
3011
|
copy: "sao ch\xE9p",
|
|
3020
3012
|
pick: "ch\u1ECDn",
|
|
3021
3013
|
beep: "beep",
|
|
3022
|
-
// Advanced Commands
|
|
3023
3014
|
js: "js",
|
|
3024
3015
|
async: "b\u1EA5t \u0111\u1ED3ng b\u1ED9",
|
|
3025
3016
|
render: "hi\u1EC3n th\u1ECB",
|
|
3026
|
-
// Animation Commands
|
|
3027
3017
|
swap: "ho\xE1n \u0111\u1ED5i",
|
|
3028
3018
|
morph: "bi\u1EBFn \u0111\u1ED5i",
|
|
3029
3019
|
settle: "\u1ED5n \u0111\u1ECBnh",
|
|
3030
|
-
// Content Commands
|
|
3031
3020
|
append: "n\u1ED1i",
|
|
3032
|
-
// Control Flow
|
|
3033
3021
|
exit: "tho\xE1t",
|
|
3034
|
-
// Focus
|
|
3035
3022
|
focus: "t\u1EADp trung",
|
|
3036
3023
|
blur: "m\u1EA5t t\u1EADp trung",
|
|
3037
|
-
// Additional
|
|
3038
3024
|
init: "kh\u1EDFi t\u1EA1o",
|
|
3039
3025
|
behavior: "h\xE0nh vi",
|
|
3040
3026
|
install: "c\xE0i \u0111\u1EB7t",
|
|
@@ -3091,13 +3077,14 @@ var vi = {
|
|
|
3091
3077
|
matches: "kh\u1EDBp",
|
|
3092
3078
|
exists: "t\u1ED3n t\u1EA1i",
|
|
3093
3079
|
has: "c\xF3",
|
|
3094
|
-
// possession verb (context-based)
|
|
3095
3080
|
have: "c\xF3",
|
|
3096
|
-
// same for first/third person
|
|
3097
3081
|
empty: "tr\u1ED1ng",
|
|
3098
3082
|
true: "\u0111\xFAng",
|
|
3099
3083
|
false: "sai",
|
|
3100
|
-
null: "r\u1ED7ng"
|
|
3084
|
+
null: "r\u1ED7ng",
|
|
3085
|
+
else: "kh\xF4ng th\xEC",
|
|
3086
|
+
end: "k\u1EBFt th\xFAc",
|
|
3087
|
+
then: "r\u1ED3i"
|
|
3101
3088
|
},
|
|
3102
3089
|
temporal: {
|
|
3103
3090
|
now: "b\xE2y gi\u1EDD",
|
|
@@ -3121,7 +3108,17 @@ var vi = {
|
|
|
3121
3108
|
any: "b\u1EA5t k\u1EF3",
|
|
3122
3109
|
some: "m\u1ED9t s\u1ED1",
|
|
3123
3110
|
each: "m\u1ED7i",
|
|
3124
|
-
every: "t\u1EA5t c\u1EA3"
|
|
3111
|
+
every: "t\u1EA5t c\u1EA3",
|
|
3112
|
+
body: "body",
|
|
3113
|
+
event: "s\u1EF1 ki\u1EC7n",
|
|
3114
|
+
it: "n\xF3",
|
|
3115
|
+
its: "c\u1EE7a n\xF3",
|
|
3116
|
+
me: "t\xF4i",
|
|
3117
|
+
my: "c\u1EE7a t\xF4i",
|
|
3118
|
+
result: "k\u1EBFt qu\u1EA3",
|
|
3119
|
+
target: "m\u1EE5c ti\xEAu",
|
|
3120
|
+
you: "b\u1EA1n",
|
|
3121
|
+
your: "c\u1EE7a b\u1EA1n"
|
|
3125
3122
|
},
|
|
3126
3123
|
attributes: {
|
|
3127
3124
|
id: "id",
|
|
@@ -4112,7 +4109,15 @@ var bengaliDictionary = {
|
|
|
4112
4109
|
install: "\u0987\u09A8\u09B8\u09CD\u099F\u09B2",
|
|
4113
4110
|
clone: "\u0995\u09AA\u09BF",
|
|
4114
4111
|
swap: "\u09AC\u09A6\u09B2",
|
|
4115
|
-
morph: "\u09B0\u09C2\u09AA\u09BE\u09A8\u09CD\u09A4\u09B0"
|
|
4112
|
+
morph: "\u09B0\u09C2\u09AA\u09BE\u09A8\u09CD\u09A4\u09B0",
|
|
4113
|
+
beep: "\u09AC\u09C0\u09AA",
|
|
4114
|
+
break: "\u09AD\u09BE\u0999\u09C1\u09A8",
|
|
4115
|
+
copy: "\u0995\u09AA\u09BF",
|
|
4116
|
+
exit: "\u09AC\u09C7\u09B0",
|
|
4117
|
+
js: "\u099C\u09C7\u098F\u09B8",
|
|
4118
|
+
pick: "\u09AC\u09BE\u099B\u09C1\u09A8",
|
|
4119
|
+
render: "\u09B0\u09C7\u09A8\u09CD\u09A1\u09BE\u09B0",
|
|
4120
|
+
until: "\u09AA\u09B0\u09CD\u09AF\u09A8\u09CD\u09A4"
|
|
4116
4121
|
},
|
|
4117
4122
|
modifiers: {
|
|
4118
4123
|
to: "\u0995\u09C7",
|
|
@@ -4160,14 +4165,14 @@ var bengaliDictionary = {
|
|
|
4160
4165
|
is: "\u09B9\u09AF\u09BC",
|
|
4161
4166
|
exists: "\u0986\u099B\u09C7",
|
|
4162
4167
|
has: "\u0986\u099B\u09C7",
|
|
4163
|
-
// possession verb (context-based)
|
|
4164
4168
|
have: "\u0986\u099B\u09BF",
|
|
4165
|
-
// first-person: আমার আছি
|
|
4166
4169
|
empty: "\u0996\u09BE\u09B2\u09BF",
|
|
4167
4170
|
true: "\u09B8\u09A4\u09CD\u09AF",
|
|
4168
4171
|
false: "\u09AE\u09BF\u09A5\u09CD\u09AF\u09BE",
|
|
4169
4172
|
null: "\u09B6\u09C2\u09A8\u09CD\u09AF",
|
|
4170
|
-
undefined: "\u0985\u09A8\u09BF\u09B0\u09CD\u09A7\u09BE\u09B0\u09BF\u09A4"
|
|
4173
|
+
undefined: "\u0985\u09A8\u09BF\u09B0\u09CD\u09A7\u09BE\u09B0\u09BF\u09A4",
|
|
4174
|
+
end: "\u09B6\u09C7\u09B7",
|
|
4175
|
+
then: "\u09A4\u09BE\u09B0\u09AA\u09B0"
|
|
4171
4176
|
},
|
|
4172
4177
|
temporal: {
|
|
4173
4178
|
now: "\u098F\u0996\u09A8",
|
|
@@ -4188,7 +4193,9 @@ var bengaliDictionary = {
|
|
|
4188
4193
|
result: "\u09AB\u09B2\u09BE\u09AB\u09B2",
|
|
4189
4194
|
event: "\u0998\u099F\u09A8\u09BE",
|
|
4190
4195
|
target: "\u09B2\u0995\u09CD\u09B7\u09CD\u09AF",
|
|
4191
|
-
body: "\u09AC\u09A1\u09BF"
|
|
4196
|
+
body: "\u09AC\u09A1\u09BF",
|
|
4197
|
+
you: "\u0986\u09AA\u09A8\u09BF",
|
|
4198
|
+
your: "\u09A4\u09CB\u09AE\u09BE\u09B0"
|
|
4192
4199
|
},
|
|
4193
4200
|
attributes: {
|
|
4194
4201
|
class: "\u09B6\u09CD\u09B0\u09C7\u09A3\u09BF",
|
|
@@ -4262,7 +4269,15 @@ var thaiDictionary = {
|
|
|
4262
4269
|
install: "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07",
|
|
4263
4270
|
clone: "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01",
|
|
4264
4271
|
swap: "\u0E2A\u0E25\u0E31\u0E1A\u0E17\u0E35\u0E48",
|
|
4265
|
-
morph: "\u0E41\u0E1B\u0E25\u0E07\u0E23\u0E48\u0E32\u0E07"
|
|
4272
|
+
morph: "\u0E41\u0E1B\u0E25\u0E07\u0E23\u0E48\u0E32\u0E07",
|
|
4273
|
+
beep: "\u0E1A\u0E35\u0E4A\u0E1A",
|
|
4274
|
+
break: "\u0E02\u0E31\u0E14\u0E08\u0E31\u0E07\u0E2B\u0E27\u0E30",
|
|
4275
|
+
copy: "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01",
|
|
4276
|
+
exit: "\u0E2D\u0E2D\u0E01",
|
|
4277
|
+
js: "\u0E40\u0E08\u0E40\u0E2D\u0E2A",
|
|
4278
|
+
pick: "\u0E40\u0E25\u0E37\u0E2D\u0E01",
|
|
4279
|
+
render: "\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25",
|
|
4280
|
+
until: "\u0E08\u0E19\u0E16\u0E36\u0E07"
|
|
4266
4281
|
},
|
|
4267
4282
|
modifiers: {
|
|
4268
4283
|
to: "\u0E44\u0E1B\u0E22\u0E31\u0E07",
|
|
@@ -4310,14 +4325,14 @@ var thaiDictionary = {
|
|
|
4310
4325
|
is: "\u0E40\u0E1B\u0E47\u0E19",
|
|
4311
4326
|
exists: "\u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48",
|
|
4312
4327
|
has: "\u0E21\u0E35",
|
|
4313
|
-
// possession verb (context-based)
|
|
4314
4328
|
have: "\u0E21\u0E35",
|
|
4315
|
-
// same for first/third person
|
|
4316
4329
|
empty: "\u0E27\u0E48\u0E32\u0E07",
|
|
4317
4330
|
true: "\u0E08\u0E23\u0E34\u0E07",
|
|
4318
4331
|
false: "\u0E40\u0E17\u0E47\u0E08",
|
|
4319
4332
|
null: "\u0E27\u0E48\u0E32\u0E07",
|
|
4320
|
-
undefined: "\u0E44\u0E21\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14"
|
|
4333
|
+
undefined: "\u0E44\u0E21\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14",
|
|
4334
|
+
end: "\u0E08\u0E1A",
|
|
4335
|
+
then: "\u0E41\u0E25\u0E49\u0E27"
|
|
4321
4336
|
},
|
|
4322
4337
|
temporal: {
|
|
4323
4338
|
now: "\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49",
|
|
@@ -4338,7 +4353,9 @@ var thaiDictionary = {
|
|
|
4338
4353
|
result: "\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C",
|
|
4339
4354
|
event: "\u0E40\u0E2B\u0E15\u0E38\u0E01\u0E32\u0E23\u0E13\u0E4C",
|
|
4340
4355
|
target: "\u0E40\u0E1B\u0E49\u0E32\u0E2B\u0E21\u0E32\u0E22",
|
|
4341
|
-
body: "\u0E1A\u0E2D\u0E14\u0E35\u0E49"
|
|
4356
|
+
body: "\u0E1A\u0E2D\u0E14\u0E35\u0E49",
|
|
4357
|
+
you: "\u0E04\u0E38\u0E13",
|
|
4358
|
+
your: "\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13"
|
|
4342
4359
|
},
|
|
4343
4360
|
attributes: {
|
|
4344
4361
|
class: "\u0E04\u0E25\u0E32\u0E2A",
|