@lokascript/i18n 2.5.1 → 2.6.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 (73) hide show
  1. package/dist/browser.cjs +1274 -154
  2. package/dist/browser.cjs.map +1 -1
  3. package/dist/browser.d.cts +3 -3
  4. package/dist/browser.d.ts +3 -3
  5. package/dist/browser.js +1274 -155
  6. package/dist/browser.js.map +1 -1
  7. package/dist/dictionaries/index.cjs +364 -133
  8. package/dist/dictionaries/index.cjs.map +1 -1
  9. package/dist/dictionaries/index.d.cts +1 -1
  10. package/dist/dictionaries/index.d.ts +1 -1
  11. package/dist/dictionaries/index.js +364 -133
  12. package/dist/dictionaries/index.js.map +1 -1
  13. package/dist/index.cjs +8860 -7740
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +37 -37
  16. package/dist/index.d.ts +37 -37
  17. package/dist/index.js +8860 -7741
  18. package/dist/index.js.map +1 -1
  19. package/dist/lokascript-i18n.min.js +1 -1
  20. package/dist/lokascript-i18n.min.js.map +1 -1
  21. package/dist/lokascript-i18n.mjs +1697 -146
  22. package/dist/lokascript-i18n.mjs.map +1 -1
  23. package/dist/plugins/vite.cjs +359 -132
  24. package/dist/plugins/vite.cjs.map +1 -1
  25. package/dist/plugins/vite.js +359 -132
  26. package/dist/plugins/vite.js.map +1 -1
  27. package/dist/plugins/webpack.cjs +359 -132
  28. package/dist/plugins/webpack.cjs.map +1 -1
  29. package/dist/plugins/webpack.js +359 -132
  30. package/dist/plugins/webpack.js.map +1 -1
  31. package/dist/{transformer-BLv389qz.d.ts → transformer-BA8YX9u1.d.ts} +120 -2
  32. package/dist/{transformer-PFsYELrc.d.cts → transformer-DM7iplCU.d.cts} +120 -2
  33. package/dist/{types-BcALAO6h.d.cts → types-BYtpqGq3.d.cts} +1 -1
  34. package/dist/{types-BcALAO6h.d.ts → types-BYtpqGq3.d.ts} +1 -1
  35. package/package.json +6 -6
  36. package/src/browser.ts +1 -0
  37. package/src/command-primary-roles.test.ts +59 -0
  38. package/src/constants.ts +51 -0
  39. package/src/dictionaries/ar.ts +8 -3
  40. package/src/dictionaries/bn.ts +3 -1
  41. package/src/dictionaries/de.ts +19 -4
  42. package/src/dictionaries/derive.ts +4 -0
  43. package/src/dictionaries/en.ts +9 -0
  44. package/src/dictionaries/es.ts +2 -2
  45. package/src/dictionaries/fr.ts +6 -2
  46. package/src/dictionaries/he.ts +7 -1
  47. package/src/dictionaries/hi.ts +17 -10
  48. package/src/dictionaries/id.ts +15 -8
  49. package/src/dictionaries/it.ts +6 -3
  50. package/src/dictionaries/ja.ts +10 -4
  51. package/src/dictionaries/ko.ts +9 -4
  52. package/src/dictionaries/ms.ts +2 -1
  53. package/src/dictionaries/pl.ts +11 -3
  54. package/src/dictionaries/pt.ts +10 -4
  55. package/src/dictionaries/qu.ts +46 -22
  56. package/src/dictionaries/ru.ts +14 -7
  57. package/src/dictionaries/sw.ts +37 -10
  58. package/src/dictionaries/th.ts +3 -1
  59. package/src/dictionaries/tl.ts +14 -7
  60. package/src/dictionaries/tr.ts +22 -9
  61. package/src/dictionaries/uk.ts +13 -7
  62. package/src/dictionaries/vi.ts +3 -3
  63. package/src/dictionaries/zh.ts +10 -2
  64. package/src/examples/new-languages.ts +1 -1
  65. package/src/grammar/grammar.test.ts +1242 -1
  66. package/src/grammar/index.ts +1 -0
  67. package/src/grammar/profiles/index.ts +358 -12
  68. package/src/grammar/transformer.ts +1053 -16
  69. package/src/grammar/types.ts +22 -1
  70. package/src/index.ts +1 -0
  71. package/src/new-languages.test.ts +7 -3
  72. package/src/parser/parser-integration.test.ts +5 -1
  73. package/src/positional-keyword-drift.test.ts +138 -0
@@ -1,6 +1,6 @@
1
- import { K as KeywordProvider } from './transformer-PFsYELrc.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, z as fr, z as frDictionary, B as frKeywords, C as frenchProfile, D as germanProfile, F as getProfile, H as getSupportedLocales, y as grammarExamples, I as hebrewProfile, N as hiDictionary, J as hiKeywords, N 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 ms, a3 as msDictionary, a4 as msKeywords, a5 as parseStatement, a6 as pl, a6 as plDictionary, a7 as plKeywords, a8 as portugueseProfile, a9 as profiles, aa as pt, aa as ptDictionary, ab as ptKeywords, ac as qu, ac as quDictionary, ad as quKeywords, ae as quechuaProfile, af as reorderRoles, ah as ruDictionary, ag as ruKeywords, ah as russianDictionary, ai as spanishProfile, aj as sw, aj as swDictionary, ak as swKeywords, al as swahiliProfile, am as th, am as thDictionary, an as thKeywords, ao as tl, ao as tlDictionary, ap as tlKeywords, aq as toEnglish, ar as toLocale, as as tr, as as trDictionary, at as trKeywords, au as transformStatement, av as translate, aw as turkishProfile, ay as ukDictionary, ax as ukKeywords, ay as ukrainianDictionary, az as vi, az as viDictionary, aA as viKeywords, aB as zh, aB as zhDictionary, aC as zhKeywords } from './transformer-PFsYELrc.cjs';
3
- import { a as Dictionary } from './types-BcALAO6h.cjs';
1
+ import { K as KeywordProvider } from './transformer-DM7iplCU.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-DM7iplCU.cjs';
3
+ import { D as Dictionary } from './types-BYtpqGq3.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 './transformer-BLv389qz.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, z as fr, z as frDictionary, B as frKeywords, C as frenchProfile, D as germanProfile, F as getProfile, H as getSupportedLocales, y as grammarExamples, I as hebrewProfile, N as hiDictionary, J as hiKeywords, N 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 ms, a3 as msDictionary, a4 as msKeywords, a5 as parseStatement, a6 as pl, a6 as plDictionary, a7 as plKeywords, a8 as portugueseProfile, a9 as profiles, aa as pt, aa as ptDictionary, ab as ptKeywords, ac as qu, ac as quDictionary, ad as quKeywords, ae as quechuaProfile, af as reorderRoles, ah as ruDictionary, ag as ruKeywords, ah as russianDictionary, ai as spanishProfile, aj as sw, aj as swDictionary, ak as swKeywords, al as swahiliProfile, am as th, am as thDictionary, an as thKeywords, ao as tl, ao as tlDictionary, ap as tlKeywords, aq as toEnglish, ar as toLocale, as as tr, as as trDictionary, at as trKeywords, au as transformStatement, av as translate, aw as turkishProfile, ay as ukDictionary, ax as ukKeywords, ay as ukrainianDictionary, az as vi, az as viDictionary, aA as viKeywords, aB as zh, aB as zhDictionary, aC as zhKeywords } from './transformer-BLv389qz.js';
3
- import { a as Dictionary } from './types-BcALAO6h.js';
1
+ import { K as KeywordProvider } from './transformer-BA8YX9u1.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-BA8YX9u1.js';
3
+ import { D as Dictionary } from './types-BYtpqGq3.js';
4
4
 
5
5
  declare const he: Dictionary;
6
6