@lokascript/i18n 2.3.0 → 2.4.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 (71) hide show
  1. package/dist/browser.cjs +626 -473
  2. package/dist/browser.cjs.map +1 -1
  3. package/dist/browser.d.cts +25 -3
  4. package/dist/browser.d.ts +25 -3
  5. package/dist/browser.js +623 -474
  6. package/dist/browser.js.map +1 -1
  7. package/dist/dictionaries/index.cjs +489 -472
  8. package/dist/dictionaries/index.cjs.map +1 -1
  9. package/dist/dictionaries/index.d.cts +5 -3
  10. package/dist/dictionaries/index.d.ts +5 -3
  11. package/dist/dictionaries/index.js +489 -473
  12. package/dist/dictionaries/index.js.map +1 -1
  13. package/dist/index.cjs +617 -473
  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 +617 -473
  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 +730 -478
  22. package/dist/lokascript-i18n.mjs.map +1 -1
  23. package/dist/plugins/vite.cjs +488 -472
  24. package/dist/plugins/vite.cjs.map +1 -1
  25. package/dist/plugins/vite.js +488 -472
  26. package/dist/plugins/vite.js.map +1 -1
  27. package/dist/plugins/webpack.cjs +488 -472
  28. package/dist/plugins/webpack.cjs.map +1 -1
  29. package/dist/plugins/webpack.js +488 -472
  30. package/dist/plugins/webpack.js.map +1 -1
  31. package/dist/{transformer-B0zy-kti.d.ts → transformer-BLv389qz.d.ts} +12 -47
  32. package/dist/{transformer-CzY_vHU0.d.cts → transformer-PFsYELrc.d.cts} +12 -47
  33. package/dist/{types-BYtpqGq3.d.cts → types-BcALAO6h.d.cts} +1 -1
  34. package/dist/{types-BYtpqGq3.d.ts → types-BcALAO6h.d.ts} +1 -1
  35. package/package.json +5 -5
  36. package/src/browser.ts +3 -0
  37. package/src/constants.ts +9 -0
  38. package/src/dictionaries/ar.ts +22 -43
  39. package/src/dictionaries/bn.ts +17 -0
  40. package/src/dictionaries/de.ts +19 -40
  41. package/src/dictionaries/en.ts +26 -0
  42. package/src/dictionaries/es.ts +19 -40
  43. package/src/dictionaries/fr.ts +19 -40
  44. package/src/dictionaries/he.ts +2 -0
  45. package/src/dictionaries/hi.ts +18 -48
  46. package/src/dictionaries/id.ts +22 -43
  47. package/src/dictionaries/index.ts +5 -1
  48. package/src/dictionaries/it.ts +18 -39
  49. package/src/dictionaries/ja.ts +18 -39
  50. package/src/dictionaries/ko.ts +22 -43
  51. package/src/dictionaries/ms.ts +16 -50
  52. package/src/dictionaries/pl.ts +18 -45
  53. package/src/dictionaries/pt.ts +23 -48
  54. package/src/dictionaries/qu.ts +22 -43
  55. package/src/dictionaries/ru.ts +18 -48
  56. package/src/dictionaries/sw.ts +22 -43
  57. package/src/dictionaries/th.ts +17 -0
  58. package/src/dictionaries/tl.ts +16 -50
  59. package/src/dictionaries/tr.ts +24 -45
  60. package/src/dictionaries/uk.ts +18 -48
  61. package/src/dictionaries/vi.ts +17 -0
  62. package/src/dictionaries/zh.ts +22 -43
  63. package/src/grammar/grammar.test.ts +143 -24
  64. package/src/grammar/index.ts +1 -0
  65. package/src/grammar/profiles/index.ts +31 -0
  66. package/src/grammar/transformer.ts +161 -0
  67. package/src/parser/he.ts +29 -0
  68. package/src/parser/index.ts +1 -0
  69. package/src/schema-alignment.test.ts +154 -0
  70. package/src/test-utils/complete-languages.ts +40 -0
  71. package/src/translation-validation.test.ts +1 -26
@@ -1,4 +1,4 @@
1
- import { D as Dictionary, d as DictionaryCategory } from '../types-BYtpqGq3.cjs';
1
+ import { a as Dictionary, b as DictionaryCategory } from '../types-BcALAO6h.cjs';
2
2
 
3
3
  /**
4
4
  * Dictionary Derivation from Semantic Profiles
@@ -77,7 +77,7 @@ declare function validateDictionary(derived: Dictionary, original: Dictionary):
77
77
  /**
78
78
  * Dictionary Index
79
79
  *
80
- * Exports dictionaries for all 22 supported languages.
80
+ * Exports dictionaries for all supported languages.
81
81
  * Each dictionary maps English canonical keywords to locale-specific translations
82
82
  * across 8 categories: commands, modifiers, events, logical, temporal, values,
83
83
  * attributes, and expressions.
@@ -132,6 +132,8 @@ declare const th: Dictionary;
132
132
  declare const ms: Dictionary;
133
133
  /** Tagalog dictionary */
134
134
  declare const tl: Dictionary;
135
+ /** Hebrew dictionary */
136
+ declare const he: Dictionary;
135
137
  /**
136
138
  * All available dictionaries indexed by locale code.
137
139
  */
@@ -149,4 +151,4 @@ declare const isLocaleSupported: (locale: string) => boolean;
149
151
  */
150
152
  declare const getDictionary: (locale: string, fallback?: string) => Dictionary | null;
151
153
 
152
- export { ar, bn, createEnglishDictionary, de, deriveFromProfile, dictionaries, en, es, fr, getDictionary, hi, id, isLocaleSupported, it, ja, ko, ms, pl, pt, qu, ru, supportedLocales, sw, th, tl, tr, uk, validateDictionary, vi, zh };
154
+ export { ar, bn, createEnglishDictionary, de, deriveFromProfile, dictionaries, en, es, fr, getDictionary, he, hi, id, isLocaleSupported, it, ja, ko, ms, pl, pt, qu, ru, supportedLocales, sw, th, tl, tr, uk, validateDictionary, vi, zh };
@@ -1,4 +1,4 @@
1
- import { D as Dictionary, d as DictionaryCategory } from '../types-BYtpqGq3.js';
1
+ import { a as Dictionary, b as DictionaryCategory } from '../types-BcALAO6h.js';
2
2
 
3
3
  /**
4
4
  * Dictionary Derivation from Semantic Profiles
@@ -77,7 +77,7 @@ declare function validateDictionary(derived: Dictionary, original: Dictionary):
77
77
  /**
78
78
  * Dictionary Index
79
79
  *
80
- * Exports dictionaries for all 22 supported languages.
80
+ * Exports dictionaries for all supported languages.
81
81
  * Each dictionary maps English canonical keywords to locale-specific translations
82
82
  * across 8 categories: commands, modifiers, events, logical, temporal, values,
83
83
  * attributes, and expressions.
@@ -132,6 +132,8 @@ declare const th: Dictionary;
132
132
  declare const ms: Dictionary;
133
133
  /** Tagalog dictionary */
134
134
  declare const tl: Dictionary;
135
+ /** Hebrew dictionary */
136
+ declare const he: Dictionary;
135
137
  /**
136
138
  * All available dictionaries indexed by locale code.
137
139
  */
@@ -149,4 +151,4 @@ declare const isLocaleSupported: (locale: string) => boolean;
149
151
  */
150
152
  declare const getDictionary: (locale: string, fallback?: string) => Dictionary | null;
151
153
 
152
- export { ar, bn, createEnglishDictionary, de, deriveFromProfile, dictionaries, en, es, fr, getDictionary, hi, id, isLocaleSupported, it, ja, ko, ms, pl, pt, qu, ru, supportedLocales, sw, th, tl, tr, uk, validateDictionary, vi, zh };
154
+ export { ar, bn, createEnglishDictionary, de, deriveFromProfile, dictionaries, en, es, fr, getDictionary, he, hi, id, isLocaleSupported, it, ja, ko, ms, pl, pt, qu, ru, supportedLocales, sw, th, tl, tr, uk, validateDictionary, vi, zh };