@lokascript/i18n 6.0.0 → 6.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.d.cts +3 -3
- package/dist/browser.d.ts +3 -3
- package/dist/dictionaries/index.d.cts +1 -1
- package/dist/dictionaries/index.d.ts +1 -1
- package/dist/{index-BvvoluMH.d.ts → index-BLRVTX6u.d.ts} +3 -2
- package/dist/{index-C4L2RKNl.d.cts → index-CjNLZRcz.d.cts} +3 -2
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/plugins/vite.d.cts +2 -1
- package/dist/plugins/vite.d.ts +2 -1
- package/dist/plugins/webpack.d.cts +2 -1
- package/dist/plugins/webpack.d.ts +2 -1
- package/dist/{types-BYtpqGq3.d.cts → types-Bie84ZI_.d.cts} +2 -1
- package/dist/{types-BYtpqGq3.d.ts → types-Bie84ZI_.d.ts} +2 -1
- package/package.json +4 -4
package/dist/browser.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { K as KeywordProvider } from './index-
|
|
2
|
-
export { A as AdpositionType, E as ENGLISH_COMMANDS, a as ENGLISH_KEYWORDS, G as GrammarRule, b as GrammaticalMarker, 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 ar, j as arDictionary, k as arKeywords, l as arabicProfile, m as bn, m as bnDictionary, n as bnKeywords, o as chineseProfile, p as createEnglishProvider, q as createKeywordProvider, r as de, r as deDictionary, s as deKeywords, t as detectBrowserLocale, u as englishProfile, v as es, v as esDictionary, w as esKeywords, x as fr, x as frDictionary, y as frKeywords, z as frenchProfile, B as germanProfile, C as getProfile, D as getSupportedLocales, F as hebrewProfile, H as hiDictionary, I as hiKeywords, H as hindiDictionary, J as id, J as idDictionary, N as idKeywords, O as indonesianProfile, Q as insertMarkers, R as it, R as itDictionary, T as itKeywords, V as ja, V as jaDictionary, X as jaKeywords, Y as japaneseProfile, Z as joinTokens, _ as ko, _ as koDictionary, $ as koKeywords, a0 as koreanProfile, a1 as malayProfile, a2 as ms, a2 as msDictionary, a3 as msKeywords, a4 as pl, a4 as plDictionary, a5 as plKeywords, a6 as portugueseProfile, a7 as profiles, a8 as pt, a8 as ptDictionary, a9 as ptKeywords, aa as qu, aa as quDictionary, ab as quKeywords, ac as quechuaProfile, ad as reorderRoles, ae as ruDictionary, af as ruKeywords, ae as russianDictionary, ag as spanishProfile, ah as sw, ah as swDictionary, ai as swKeywords, aj as swahiliProfile, ak as th, ak as thDictionary, al as thKeywords, am as tl, am as tlDictionary, an as tlKeywords, ao as tr, ao as trDictionary, ap as trKeywords, aq as transformStatement, ar as turkishProfile, as as ukDictionary, at as ukKeywords, as as ukrainianDictionary, au as vi, au as viDictionary, av as viKeywords, aw as zh, aw as zhDictionary, ax as zhKeywords } from './index-
|
|
3
|
-
import {
|
|
1
|
+
import { K as KeywordProvider } from './index-CjNLZRcz.cjs';
|
|
2
|
+
export { A as AdpositionType, E as ENGLISH_COMMANDS, a as ENGLISH_KEYWORDS, G as GrammarRule, b as GrammaticalMarker, 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 ar, j as arDictionary, k as arKeywords, l as arabicProfile, m as bn, m as bnDictionary, n as bnKeywords, o as chineseProfile, p as createEnglishProvider, q as createKeywordProvider, r as de, r as deDictionary, s as deKeywords, t as detectBrowserLocale, u as englishProfile, v as es, v as esDictionary, w as esKeywords, x as fr, x as frDictionary, y as frKeywords, z as frenchProfile, B as germanProfile, C as getProfile, D as getSupportedLocales, F as hebrewProfile, H as hiDictionary, I as hiKeywords, H as hindiDictionary, J as id, J as idDictionary, N as idKeywords, O as indonesianProfile, Q as insertMarkers, R as it, R as itDictionary, T as itKeywords, V as ja, V as jaDictionary, X as jaKeywords, Y as japaneseProfile, Z as joinTokens, _ as ko, _ as koDictionary, $ as koKeywords, a0 as koreanProfile, a1 as malayProfile, a2 as ms, a2 as msDictionary, a3 as msKeywords, a4 as pl, a4 as plDictionary, a5 as plKeywords, a6 as portugueseProfile, a7 as profiles, a8 as pt, a8 as ptDictionary, a9 as ptKeywords, aa as qu, aa as quDictionary, ab as quKeywords, ac as quechuaProfile, ad as reorderRoles, ae as ruDictionary, af as ruKeywords, ae as russianDictionary, ag as spanishProfile, ah as sw, ah as swDictionary, ai as swKeywords, aj as swahiliProfile, ak as th, ak as thDictionary, al as thKeywords, am as tl, am as tlDictionary, an as tlKeywords, ao as tr, ao as trDictionary, ap as trKeywords, aq as transformStatement, ar as turkishProfile, as as ukDictionary, at as ukKeywords, as as ukrainianDictionary, au as vi, au as viDictionary, av as viKeywords, aw as zh, aw as zhDictionary, ax as zhKeywords } from './index-CjNLZRcz.cjs';
|
|
3
|
+
import { Dictionary } from './index.cjs';
|
|
4
4
|
|
|
5
5
|
declare const he: Dictionary;
|
|
6
6
|
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { K as KeywordProvider } from './index-
|
|
2
|
-
export { A as AdpositionType, E as ENGLISH_COMMANDS, a as ENGLISH_KEYWORDS, G as GrammarRule, b as GrammaticalMarker, 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 ar, j as arDictionary, k as arKeywords, l as arabicProfile, m as bn, m as bnDictionary, n as bnKeywords, o as chineseProfile, p as createEnglishProvider, q as createKeywordProvider, r as de, r as deDictionary, s as deKeywords, t as detectBrowserLocale, u as englishProfile, v as es, v as esDictionary, w as esKeywords, x as fr, x as frDictionary, y as frKeywords, z as frenchProfile, B as germanProfile, C as getProfile, D as getSupportedLocales, F as hebrewProfile, H as hiDictionary, I as hiKeywords, H as hindiDictionary, J as id, J as idDictionary, N as idKeywords, O as indonesianProfile, Q as insertMarkers, R as it, R as itDictionary, T as itKeywords, V as ja, V as jaDictionary, X as jaKeywords, Y as japaneseProfile, Z as joinTokens, _ as ko, _ as koDictionary, $ as koKeywords, a0 as koreanProfile, a1 as malayProfile, a2 as ms, a2 as msDictionary, a3 as msKeywords, a4 as pl, a4 as plDictionary, a5 as plKeywords, a6 as portugueseProfile, a7 as profiles, a8 as pt, a8 as ptDictionary, a9 as ptKeywords, aa as qu, aa as quDictionary, ab as quKeywords, ac as quechuaProfile, ad as reorderRoles, ae as ruDictionary, af as ruKeywords, ae as russianDictionary, ag as spanishProfile, ah as sw, ah as swDictionary, ai as swKeywords, aj as swahiliProfile, ak as th, ak as thDictionary, al as thKeywords, am as tl, am as tlDictionary, an as tlKeywords, ao as tr, ao as trDictionary, ap as trKeywords, aq as transformStatement, ar as turkishProfile, as as ukDictionary, at as ukKeywords, as as ukrainianDictionary, au as vi, au as viDictionary, av as viKeywords, aw as zh, aw as zhDictionary, ax as zhKeywords } from './index-
|
|
3
|
-
import {
|
|
1
|
+
import { K as KeywordProvider } from './index-BLRVTX6u.js';
|
|
2
|
+
export { A as AdpositionType, E as ENGLISH_COMMANDS, a as ENGLISH_KEYWORDS, G as GrammarRule, b as GrammaticalMarker, 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 ar, j as arDictionary, k as arKeywords, l as arabicProfile, m as bn, m as bnDictionary, n as bnKeywords, o as chineseProfile, p as createEnglishProvider, q as createKeywordProvider, r as de, r as deDictionary, s as deKeywords, t as detectBrowserLocale, u as englishProfile, v as es, v as esDictionary, w as esKeywords, x as fr, x as frDictionary, y as frKeywords, z as frenchProfile, B as germanProfile, C as getProfile, D as getSupportedLocales, F as hebrewProfile, H as hiDictionary, I as hiKeywords, H as hindiDictionary, J as id, J as idDictionary, N as idKeywords, O as indonesianProfile, Q as insertMarkers, R as it, R as itDictionary, T as itKeywords, V as ja, V as jaDictionary, X as jaKeywords, Y as japaneseProfile, Z as joinTokens, _ as ko, _ as koDictionary, $ as koKeywords, a0 as koreanProfile, a1 as malayProfile, a2 as ms, a2 as msDictionary, a3 as msKeywords, a4 as pl, a4 as plDictionary, a5 as plKeywords, a6 as portugueseProfile, a7 as profiles, a8 as pt, a8 as ptDictionary, a9 as ptKeywords, aa as qu, aa as quDictionary, ab as quKeywords, ac as quechuaProfile, ad as reorderRoles, ae as ruDictionary, af as ruKeywords, ae as russianDictionary, ag as spanishProfile, ah as sw, ah as swDictionary, ai as swKeywords, aj as swahiliProfile, ak as th, ak as thDictionary, al as thKeywords, am as tl, am as tlDictionary, an as tlKeywords, ao as tr, ao as trDictionary, ap as trKeywords, aq as transformStatement, ar as turkishProfile, as as ukDictionary, at as ukKeywords, as as ukrainianDictionary, au as vi, au as viDictionary, av as viKeywords, aw as zh, aw as zhDictionary, ax as zhKeywords } from './index-BLRVTX6u.js';
|
|
3
|
+
import { Dictionary } from './index.js';
|
|
4
4
|
|
|
5
5
|
declare const he: Dictionary;
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as Dictionary } from './types-
|
|
1
|
+
import { D as Dictionary } from './types-Bie84ZI_.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* KeywordProvider interface for locale-aware parsing.
|
|
@@ -861,4 +861,5 @@ declare const profiles: Record<string, LanguageProfile>;
|
|
|
861
861
|
declare function getProfile(locale: string): LanguageProfile | undefined;
|
|
862
862
|
declare function getSupportedLocales(): string[];
|
|
863
863
|
|
|
864
|
-
export { koKeywords as $,
|
|
864
|
+
export { koKeywords as $, germanProfile as B, getProfile as C, getSupportedLocales as D, ENGLISH_COMMANDS as E, hebrewProfile as F, hindiDictionary as H, hiKeywords as I, id as J, LANGUAGE_FAMILY_DEFAULTS as L, idKeywords as N, indonesianProfile as O, insertMarkers as Q, it as R, itKeywords as T, UNIVERSAL_ENGLISH_KEYWORDS as U, ja as V, jaKeywords as X, japaneseProfile as Y, joinTokens as Z, ko as _, ENGLISH_KEYWORDS as a, koreanProfile as a0, malayProfile as a1, ms as a2, msKeywords as a3, pl as a4, plKeywords as a5, portugueseProfile as a6, profiles as a7, pt as a8, ptKeywords as a9, qu as aa, quKeywords as ab, quechuaProfile as ac, reorderRoles as ad, russianDictionary as ae, ruKeywords as af, spanishProfile as ag, sw as ah, swKeywords as ai, swahiliProfile as aj, th as ak, thKeywords as al, tl as am, tlKeywords as an, tr as ao, trKeywords as ap, transformStatement as aq, turkishProfile as ar, ukrainianDictionary as as, ukKeywords as at, vi as au, viKeywords as av, zh as aw, zhKeywords as ax, LocaleManager as e, UNIVERSAL_PATTERNS as i, ar as j, arKeywords as k, arabicProfile as l, bn as m, bnKeywords as n, chineseProfile as o, createEnglishProvider as p, createKeywordProvider as q, de as r, deKeywords as s, detectBrowserLocale as t, englishProfile as u, es as v, esKeywords as w, fr as x, frKeywords as y, frenchProfile as z };
|
|
865
|
+
export type { AdpositionType as A, GrammarRule as G, KeywordProvider as K, MorphologyType as M, ParsedElement as P, SemanticRole as S, WordOrder as W, GrammaticalMarker as b, KeywordProviderOptions as c, LanguageProfile as d, ParsedStatement as f, PatternMatcher as g, PatternTransform as h };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as Dictionary } from './types-
|
|
1
|
+
import { D as Dictionary } from './types-Bie84ZI_.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* KeywordProvider interface for locale-aware parsing.
|
|
@@ -861,4 +861,5 @@ declare const profiles: Record<string, LanguageProfile>;
|
|
|
861
861
|
declare function getProfile(locale: string): LanguageProfile | undefined;
|
|
862
862
|
declare function getSupportedLocales(): string[];
|
|
863
863
|
|
|
864
|
-
export { koKeywords as $,
|
|
864
|
+
export { koKeywords as $, germanProfile as B, getProfile as C, getSupportedLocales as D, ENGLISH_COMMANDS as E, hebrewProfile as F, hindiDictionary as H, hiKeywords as I, id as J, LANGUAGE_FAMILY_DEFAULTS as L, idKeywords as N, indonesianProfile as O, insertMarkers as Q, it as R, itKeywords as T, UNIVERSAL_ENGLISH_KEYWORDS as U, ja as V, jaKeywords as X, japaneseProfile as Y, joinTokens as Z, ko as _, ENGLISH_KEYWORDS as a, koreanProfile as a0, malayProfile as a1, ms as a2, msKeywords as a3, pl as a4, plKeywords as a5, portugueseProfile as a6, profiles as a7, pt as a8, ptKeywords as a9, qu as aa, quKeywords as ab, quechuaProfile as ac, reorderRoles as ad, russianDictionary as ae, ruKeywords as af, spanishProfile as ag, sw as ah, swKeywords as ai, swahiliProfile as aj, th as ak, thKeywords as al, tl as am, tlKeywords as an, tr as ao, trKeywords as ap, transformStatement as aq, turkishProfile as ar, ukrainianDictionary as as, ukKeywords as at, vi as au, viKeywords as av, zh as aw, zhKeywords as ax, LocaleManager as e, UNIVERSAL_PATTERNS as i, ar as j, arKeywords as k, arabicProfile as l, bn as m, bnKeywords as n, chineseProfile as o, createEnglishProvider as p, createKeywordProvider as q, de as r, deKeywords as s, detectBrowserLocale as t, englishProfile as u, es as v, esKeywords as w, fr as x, frKeywords as y, frenchProfile as z };
|
|
865
|
+
export type { AdpositionType as A, GrammarRule as G, KeywordProvider as K, MorphologyType as M, ParsedElement as P, SemanticRole as S, WordOrder as W, GrammaticalMarker as b, KeywordProviderOptions as c, LanguageProfile as d, ParsedStatement as f, PatternMatcher as g, PatternTransform as h };
|
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 { 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-
|
|
1
|
+
import { I as I18nConfig, T as TranslationOptions, a as TranslationResult, D as Dictionary, V as ValidationResult$1, b as Token } from './types-Bie84ZI_.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-Bie84ZI_.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 { 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-CjNLZRcz.cjs';
|
|
5
5
|
export { hyperscriptI18nVitePlugin } from './plugins/vite.cjs';
|
|
6
6
|
export { HyperscriptI18nWebpackPlugin } from './plugins/webpack.cjs';
|
|
7
7
|
import { z } from 'zod';
|
|
@@ -605,4 +605,5 @@ declare const defaultTranslator: HyperscriptTranslator;
|
|
|
605
605
|
|
|
606
606
|
declare const defaultRuntime: RuntimeI18nManager;
|
|
607
607
|
|
|
608
|
-
export {
|
|
608
|
+
export { DateFormatter, Dictionary, EnhancedI18nInputSchema, EnhancedI18nOutputSchema, HyperscriptTranslator, I18nConfig, LocaleFormatter, NumberFormatter, PluralAwareTranslator, RuntimeI18nManager, SSRLocaleManager, Token, TranslationOptions, TranslationResult, TypedI18nContextImplementation, ValidationResult$1 as ValidationResult, createEnhancedI18n, createExpressI18nMiddleware, createI18nContext, defaultRuntime, defaultTranslator, detectLocale, enhancedI18nImplementation, formatForLocale, getBrowserLocales, getFormatter, getI18n, getPlural, initializeI18n, isRTL, pluralRules, pluralTimeExpressions, runtimeI18n, tokenize, validate, withI18n };
|
|
609
|
+
export type { DateFormatOptions, EnhancedI18nInput, EnhancedI18nOutput, NumberFormatOptions, PluralForms, PluralRule, RelativeTimeFormatOptions, RuntimeI18nOptions, SSRLocaleContext, SSRLocaleOptions };
|
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 { 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-
|
|
1
|
+
import { I as I18nConfig, T as TranslationOptions, a as TranslationResult, D as Dictionary, V as ValidationResult$1, b as Token } from './types-Bie84ZI_.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-Bie84ZI_.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-BLRVTX6u.js';
|
|
5
5
|
export { hyperscriptI18nVitePlugin } from './plugins/vite.js';
|
|
6
6
|
export { HyperscriptI18nWebpackPlugin } from './plugins/webpack.js';
|
|
7
7
|
import { z } from 'zod';
|
|
@@ -605,4 +605,5 @@ declare const defaultTranslator: HyperscriptTranslator;
|
|
|
605
605
|
|
|
606
606
|
declare const defaultRuntime: RuntimeI18nManager;
|
|
607
607
|
|
|
608
|
-
export {
|
|
608
|
+
export { DateFormatter, Dictionary, EnhancedI18nInputSchema, EnhancedI18nOutputSchema, HyperscriptTranslator, I18nConfig, LocaleFormatter, NumberFormatter, PluralAwareTranslator, RuntimeI18nManager, SSRLocaleManager, Token, TranslationOptions, TranslationResult, TypedI18nContextImplementation, ValidationResult$1 as ValidationResult, createEnhancedI18n, createExpressI18nMiddleware, createI18nContext, defaultRuntime, defaultTranslator, detectLocale, enhancedI18nImplementation, formatForLocale, getBrowserLocales, getFormatter, getI18n, getPlural, initializeI18n, isRTL, pluralRules, pluralTimeExpressions, runtimeI18n, tokenize, validate, withI18n };
|
|
609
|
+
export type { DateFormatOptions, EnhancedI18nInput, EnhancedI18nOutput, NumberFormatOptions, PluralForms, PluralRule, RelativeTimeFormatOptions, RuntimeI18nOptions, SSRLocaleContext, SSRLocaleOptions };
|
package/dist/plugins/vite.d.cts
CHANGED
|
@@ -10,4 +10,5 @@ interface HyperscriptI18nViteOptions {
|
|
|
10
10
|
}
|
|
11
11
|
declare function hyperscriptI18nVitePlugin(options?: HyperscriptI18nViteOptions): Plugin;
|
|
12
12
|
|
|
13
|
-
export {
|
|
13
|
+
export { hyperscriptI18nVitePlugin };
|
|
14
|
+
export type { HyperscriptI18nViteOptions };
|
package/dist/plugins/vite.d.ts
CHANGED
|
@@ -10,4 +10,5 @@ interface HyperscriptI18nViteOptions {
|
|
|
10
10
|
}
|
|
11
11
|
declare function hyperscriptI18nVitePlugin(options?: HyperscriptI18nViteOptions): Plugin;
|
|
12
12
|
|
|
13
|
-
export {
|
|
13
|
+
export { hyperscriptI18nVitePlugin };
|
|
14
|
+
export type { HyperscriptI18nViteOptions };
|
|
@@ -21,4 +21,5 @@ declare class HyperscriptI18nWebpackPlugin implements WebpackPluginInstance {
|
|
|
21
21
|
private processHtml;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
export {
|
|
24
|
+
export { HyperscriptI18nWebpackPlugin };
|
|
25
|
+
export type { HyperscriptI18nWebpackOptions };
|
|
@@ -21,4 +21,5 @@ declare class HyperscriptI18nWebpackPlugin implements WebpackPluginInstance {
|
|
|
21
21
|
private processHtml;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
export {
|
|
24
|
+
export { HyperscriptI18nWebpackPlugin };
|
|
25
|
+
export type { HyperscriptI18nWebpackOptions };
|
|
@@ -119,4 +119,5 @@ interface TranslationResult {
|
|
|
119
119
|
warnings?: string[];
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
export {
|
|
122
|
+
export { DICTIONARY_CATEGORIES as c, findInDictionary as i, forEachCategory as j, getDictionaryCategory as k, isDictionaryCategory as l, translateFromEnglish as t };
|
|
123
|
+
export type { Dictionary as D, I18nConfig as I, LocaleMetadata as L, TranslationOptions as T, ValidationResult as V, TranslationResult as a, Token as b, DictionaryCategory as d, TokenType as e, TranslationContext as f, ValidationError as g, ValidationWarning as h };
|
|
@@ -119,4 +119,5 @@ interface TranslationResult {
|
|
|
119
119
|
warnings?: string[];
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
export {
|
|
122
|
+
export { DICTIONARY_CATEGORIES as c, findInDictionary as i, forEachCategory as j, getDictionaryCategory as k, isDictionaryCategory as l, translateFromEnglish as t };
|
|
123
|
+
export type { Dictionary as D, I18nConfig as I, LocaleMetadata as L, TranslationOptions as T, ValidationResult as V, TranslationResult as a, Token as b, DictionaryCategory as d, TokenType as e, TranslationContext as f, ValidationError as g, ValidationWarning as h };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lokascript/i18n",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"description": "Keyword dictionaries, keyword providers and grammar profiles for hyperscript",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
},
|
|
65
65
|
"homepage": "https://github.com/codetalcott/hyperfixi/tree/main/packages/i18n#readme",
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@lokascript/semantic": "^6.
|
|
67
|
+
"@lokascript/semantic": "^6.2.0",
|
|
68
68
|
"esbuild": "^0.25.12",
|
|
69
|
-
"happy-dom": "^
|
|
69
|
+
"happy-dom": "^21.0.1",
|
|
70
70
|
"vite": "^8.3.1"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@types/node": "^26.6.3",
|
|
77
77
|
"@vitest/coverage-v8": "^5.0.0",
|
|
78
78
|
"rollup": "^4.63.5",
|
|
79
|
-
"tsup": "^
|
|
79
|
+
"tsup": "^9.0.0",
|
|
80
80
|
"typescript": "^5.0.0",
|
|
81
81
|
"vitest": "^5.0.2",
|
|
82
82
|
"zod": "^4.6.5"
|