@lokascript/i18n 2.11.1 → 3.1.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/CHANGELOG.md +13 -0
- package/dist/browser.cjs +5 -1690
- 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 +6 -1685
- package/dist/browser.js.map +1 -1
- package/dist/dictionaries/index.cjs +5 -1
- package/dist/dictionaries/index.cjs.map +1 -1
- package/dist/dictionaries/index.js +5 -1
- package/dist/dictionaries/index.js.map +1 -1
- package/dist/{transformer-CsOeqayN.d.cts → index-BykxjYST.d.cts} +1 -232
- package/dist/{transformer-DWCTG1DQ.d.ts → index-DuIef8O7.d.ts} +1 -232
- package/dist/index.cjs +16 -1878
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -1873
- 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 -2680
- package/dist/lokascript-i18n.mjs.map +1 -1
- package/dist/plugins/vite.cjs +5 -1
- package/dist/plugins/vite.cjs.map +1 -1
- package/dist/plugins/vite.js +5 -1
- package/dist/plugins/vite.js.map +1 -1
- package/dist/plugins/webpack.cjs +5 -1
- package/dist/plugins/webpack.cjs.map +1 -1
- package/dist/plugins/webpack.js +5 -1
- package/dist/plugins/webpack.js.map +1 -1
- package/package.json +4 -4
- package/src/browser.ts +0 -7
- package/src/compatibility/browser-tests/grammar-demo.spec.ts +22 -8
- package/src/constants.ts +1 -0
- package/src/dictionaries/bn.ts +5 -1
- package/src/grammar/index.ts +15 -9
- package/src/grammar/profiles.test.ts +440 -0
- package/src/index.ts +0 -7
- package/src/lexicon-parity.test.ts +77 -0
- package/src/grammar/grammar.test.ts +0 -2751
- package/src/grammar/transformer.ts +0 -2737
package/dist/index.d.cts
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.cjs';
|
|
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.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
|
|
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-BykxjYST.cjs';
|
|
5
5
|
export { hyperscriptI18nVitePlugin } from './plugins/vite.cjs';
|
|
6
6
|
export { HyperscriptI18nWebpackPlugin } from './plugins/webpack.cjs';
|
|
7
7
|
import { z } from 'zod';
|
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
|
|
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-DuIef8O7.js';
|
|
5
5
|
export { hyperscriptI18nVitePlugin } from './plugins/vite.js';
|
|
6
6
|
export { HyperscriptI18nWebpackPlugin } from './plugins/webpack.js';
|
|
7
7
|
import { z } from 'zod';
|