@lokascript/i18n 2.3.1 → 2.5.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.cjs +626 -473
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +25 -3
- package/dist/browser.d.ts +25 -3
- package/dist/browser.js +623 -474
- package/dist/browser.js.map +1 -1
- package/dist/dictionaries/index.cjs +489 -472
- package/dist/dictionaries/index.cjs.map +1 -1
- package/dist/dictionaries/index.d.cts +5 -3
- package/dist/dictionaries/index.d.ts +5 -3
- package/dist/dictionaries/index.js +489 -473
- package/dist/dictionaries/index.js.map +1 -1
- package/dist/index.cjs +617 -473
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +37 -37
- package/dist/index.d.ts +37 -37
- package/dist/index.js +617 -473
- 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 +730 -478
- package/dist/lokascript-i18n.mjs.map +1 -1
- package/dist/plugins/vite.cjs +488 -472
- package/dist/plugins/vite.cjs.map +1 -1
- package/dist/plugins/vite.js +488 -472
- package/dist/plugins/vite.js.map +1 -1
- package/dist/plugins/webpack.cjs +488 -472
- package/dist/plugins/webpack.cjs.map +1 -1
- package/dist/plugins/webpack.js +488 -472
- package/dist/plugins/webpack.js.map +1 -1
- package/dist/{transformer-B0zy-kti.d.ts → transformer-BLv389qz.d.ts} +12 -47
- package/dist/{transformer-CzY_vHU0.d.cts → transformer-PFsYELrc.d.cts} +12 -47
- package/dist/{types-BYtpqGq3.d.cts → types-BcALAO6h.d.cts} +1 -1
- package/dist/{types-BYtpqGq3.d.ts → types-BcALAO6h.d.ts} +1 -1
- package/package.json +7 -7
- package/src/browser.ts +3 -0
- package/src/constants.ts +9 -0
- package/src/dictionaries/ar.ts +22 -43
- package/src/dictionaries/bn.ts +17 -0
- package/src/dictionaries/de.ts +19 -40
- package/src/dictionaries/en.ts +26 -0
- package/src/dictionaries/es.ts +19 -40
- package/src/dictionaries/fr.ts +19 -40
- package/src/dictionaries/he.ts +2 -0
- package/src/dictionaries/hi.ts +18 -48
- package/src/dictionaries/id.ts +22 -43
- package/src/dictionaries/index.ts +5 -1
- package/src/dictionaries/it.ts +18 -39
- package/src/dictionaries/ja.ts +18 -39
- package/src/dictionaries/ko.ts +22 -43
- package/src/dictionaries/ms.ts +16 -50
- package/src/dictionaries/pl.ts +18 -45
- package/src/dictionaries/pt.ts +23 -48
- package/src/dictionaries/qu.ts +22 -43
- package/src/dictionaries/ru.ts +18 -48
- package/src/dictionaries/sw.ts +22 -43
- package/src/dictionaries/th.ts +17 -0
- package/src/dictionaries/tl.ts +16 -50
- package/src/dictionaries/tr.ts +24 -45
- package/src/dictionaries/uk.ts +18 -48
- package/src/dictionaries/vi.ts +17 -0
- package/src/dictionaries/zh.ts +22 -43
- package/src/grammar/grammar.test.ts +143 -24
- package/src/grammar/index.ts +1 -0
- package/src/grammar/profiles/index.ts +31 -0
- package/src/grammar/transformer.ts +161 -0
- package/src/parser/he.ts +29 -0
- package/src/parser/index.ts +1 -0
- package/src/schema-alignment.test.ts +154 -0
- package/src/test-utils/complete-languages.ts +40 -0
- package/src/translation-validation.test.ts +1 -26
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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 {
|
|
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
|
|
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 };
|