@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.
Files changed (42) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/browser.cjs +5 -1690
  3. package/dist/browser.cjs.map +1 -1
  4. package/dist/browser.d.cts +2 -2
  5. package/dist/browser.d.ts +2 -2
  6. package/dist/browser.js +6 -1685
  7. package/dist/browser.js.map +1 -1
  8. package/dist/dictionaries/index.cjs +5 -1
  9. package/dist/dictionaries/index.cjs.map +1 -1
  10. package/dist/dictionaries/index.js +5 -1
  11. package/dist/dictionaries/index.js.map +1 -1
  12. package/dist/{transformer-CsOeqayN.d.cts → index-BykxjYST.d.cts} +1 -232
  13. package/dist/{transformer-DWCTG1DQ.d.ts → index-DuIef8O7.d.ts} +1 -232
  14. package/dist/index.cjs +16 -1878
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.d.cts +1 -1
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.js +17 -1873
  19. package/dist/index.js.map +1 -1
  20. package/dist/lokascript-i18n.min.js +1 -1
  21. package/dist/lokascript-i18n.min.js.map +1 -1
  22. package/dist/lokascript-i18n.mjs +49 -2680
  23. package/dist/lokascript-i18n.mjs.map +1 -1
  24. package/dist/plugins/vite.cjs +5 -1
  25. package/dist/plugins/vite.cjs.map +1 -1
  26. package/dist/plugins/vite.js +5 -1
  27. package/dist/plugins/vite.js.map +1 -1
  28. package/dist/plugins/webpack.cjs +5 -1
  29. package/dist/plugins/webpack.cjs.map +1 -1
  30. package/dist/plugins/webpack.js +5 -1
  31. package/dist/plugins/webpack.js.map +1 -1
  32. package/package.json +4 -4
  33. package/src/browser.ts +0 -7
  34. package/src/compatibility/browser-tests/grammar-demo.spec.ts +22 -8
  35. package/src/constants.ts +1 -0
  36. package/src/dictionaries/bn.ts +5 -1
  37. package/src/grammar/index.ts +15 -9
  38. package/src/grammar/profiles.test.ts +440 -0
  39. package/src/index.ts +0 -7
  40. package/src/lexicon-parity.test.ts +77 -0
  41. package/src/grammar/grammar.test.ts +0 -2751
  42. package/src/grammar/transformer.ts +0 -2737
@@ -1,5 +1,5 @@
1
- import { K as KeywordProvider } from './transformer-CsOeqayN.cjs';
2
- export { A as AdpositionType, E as ENGLISH_COMMANDS, a as ENGLISH_KEYWORDS, G as GrammarRule, b as GrammarTransformer, c as GrammaticalMarker, 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 ar, k as arDictionary, l as arKeywords, m as arabicProfile, n as bn, n as bnDictionary, o as bnKeywords, p as chineseProfile, q as createEnglishProvider, r as createKeywordProvider, s as de, s as deDictionary, t as deKeywords, u as detectBrowserLocale, v as englishProfile, w as es, w as esDictionary, x as esKeywords, y as fr, y as frDictionary, z as frKeywords, B as frenchProfile, C as germanProfile, D as getProfile, F as getSupportedLocales, H as grammarExamples, I as hebrewProfile, J as hiDictionary, N as hiKeywords, J as hindiDictionary, O as id, O as idDictionary, Q as idKeywords, R as indonesianProfile, T as insertMarkers, V as it, V as itDictionary, X as itKeywords, Y as ja, Y as jaDictionary, Z as jaKeywords, _ as japaneseProfile, $ as joinTokens, a0 as ko, a0 as koDictionary, a1 as koKeywords, a2 as koreanProfile, a3 as malayProfile, a4 as ms, a4 as msDictionary, a5 as msKeywords, a6 as parseStatement, a7 as pl, a7 as plDictionary, a8 as plKeywords, a9 as portugueseProfile, aa as profiles, ab as pt, ab as ptDictionary, ac as ptKeywords, ad as qu, ad as quDictionary, ae as quKeywords, af as quechuaProfile, ag as reorderRoles, ah as ruDictionary, ai as ruKeywords, ah as russianDictionary, aj as spanishProfile, ak as sw, ak as swDictionary, al as swKeywords, am as swahiliProfile, an as th, an as thDictionary, ao as thKeywords, ap as tl, ap as tlDictionary, aq as tlKeywords, ar as toEnglish, as as toLocale, at as tr, at as trDictionary, au as trKeywords, av as transformStatement, aw as translate, ax as turkishProfile, ay as ukDictionary, az as ukKeywords, ay as ukrainianDictionary, aA as vi, aA as viDictionary, aB as viKeywords, aC as zh, aC as zhDictionary, aD as zhKeywords } from './transformer-CsOeqayN.cjs';
1
+ import { K as KeywordProvider } from './index-BykxjYST.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-BykxjYST.cjs';
3
3
  import { D as Dictionary } from './types-BYtpqGq3.cjs';
4
4
 
5
5
  declare const he: Dictionary;
package/dist/browser.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { K as KeywordProvider } from './transformer-DWCTG1DQ.js';
2
- export { A as AdpositionType, E as ENGLISH_COMMANDS, a as ENGLISH_KEYWORDS, G as GrammarRule, b as GrammarTransformer, c as GrammaticalMarker, 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 ar, k as arDictionary, l as arKeywords, m as arabicProfile, n as bn, n as bnDictionary, o as bnKeywords, p as chineseProfile, q as createEnglishProvider, r as createKeywordProvider, s as de, s as deDictionary, t as deKeywords, u as detectBrowserLocale, v as englishProfile, w as es, w as esDictionary, x as esKeywords, y as fr, y as frDictionary, z as frKeywords, B as frenchProfile, C as germanProfile, D as getProfile, F as getSupportedLocales, H as grammarExamples, I as hebrewProfile, J as hiDictionary, N as hiKeywords, J as hindiDictionary, O as id, O as idDictionary, Q as idKeywords, R as indonesianProfile, T as insertMarkers, V as it, V as itDictionary, X as itKeywords, Y as ja, Y as jaDictionary, Z as jaKeywords, _ as japaneseProfile, $ as joinTokens, a0 as ko, a0 as koDictionary, a1 as koKeywords, a2 as koreanProfile, a3 as malayProfile, a4 as ms, a4 as msDictionary, a5 as msKeywords, a6 as parseStatement, a7 as pl, a7 as plDictionary, a8 as plKeywords, a9 as portugueseProfile, aa as profiles, ab as pt, ab as ptDictionary, ac as ptKeywords, ad as qu, ad as quDictionary, ae as quKeywords, af as quechuaProfile, ag as reorderRoles, ah as ruDictionary, ai as ruKeywords, ah as russianDictionary, aj as spanishProfile, ak as sw, ak as swDictionary, al as swKeywords, am as swahiliProfile, an as th, an as thDictionary, ao as thKeywords, ap as tl, ap as tlDictionary, aq as tlKeywords, ar as toEnglish, as as toLocale, at as tr, at as trDictionary, au as trKeywords, av as transformStatement, aw as translate, ax as turkishProfile, ay as ukDictionary, az as ukKeywords, ay as ukrainianDictionary, aA as vi, aA as viDictionary, aB as viKeywords, aC as zh, aC as zhDictionary, aD as zhKeywords } from './transformer-DWCTG1DQ.js';
1
+ import { K as KeywordProvider } from './index-DuIef8O7.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-DuIef8O7.js';
3
3
  import { D as Dictionary } from './types-BYtpqGq3.js';
4
4
 
5
5
  declare const he: Dictionary;