@lokascript/i18n 2.0.0 → 2.2.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 +45 -28
- 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 +45 -28
- package/dist/browser.js.map +1 -1
- package/dist/dictionaries/index.cjs +45 -28
- package/dist/dictionaries/index.cjs.map +1 -1
- package/dist/dictionaries/index.d.cts +1 -1
- package/dist/dictionaries/index.d.ts +1 -1
- package/dist/dictionaries/index.js +45 -28
- package/dist/dictionaries/index.js.map +1 -1
- package/dist/index.cjs +45 -28
- 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 +45 -28
- 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 -33
- package/dist/lokascript-i18n.mjs.map +1 -1
- package/dist/plugins/vite.cjs +45 -28
- package/dist/plugins/vite.cjs.map +1 -1
- package/dist/plugins/vite.js +45 -28
- package/dist/plugins/vite.js.map +1 -1
- package/dist/plugins/webpack.cjs +45 -28
- package/dist/plugins/webpack.cjs.map +1 -1
- package/dist/plugins/webpack.js +45 -28
- package/dist/plugins/webpack.js.map +1 -1
- package/dist/{transformer-DN_HqdDB.d.ts → transformer-B0zy-kti.d.ts} +2 -14
- package/dist/{transformer-kXwlqa5b.d.cts → transformer-CzY_vHU0.d.cts} +2 -14
- package/dist/{types-naTJIIaT.d.cts → types-BYtpqGq3.d.cts} +1 -1
- package/dist/{types-naTJIIaT.d.ts → types-BYtpqGq3.d.ts} +1 -1
- package/package.json +3 -3
- package/src/dictionaries/bn.ts +23 -8
- package/src/dictionaries/he.ts +101 -0
- package/src/dictionaries/th.ts +23 -8
- package/src/dictionaries/vi.ts +17 -30
package/dist/browser.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import { D as Dictionary } from './types-
|
|
1
|
+
export { A as AdpositionType, E as ENGLISH_COMMANDS, a as ENGLISH_KEYWORDS, G as GrammarRule, b as GrammarTransformer, c as GrammaticalMarker, K as KeywordProvider, 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 hiDictionary, J as hiKeywords, I as hindiDictionary, N as id, N as idDictionary, O as idKeywords, Q as indonesianProfile, R as insertMarkers, T as it, T as itDictionary, V as itKeywords, X as ja, X as jaDictionary, Y as jaKeywords, Z as japaneseProfile, _ as joinTokens, $ as ko, $ as koDictionary, a0 as koKeywords, a1 as koreanProfile, a2 as ms, a2 as msDictionary, a3 as msKeywords, a4 as parseStatement, a5 as pl, a5 as plDictionary, a6 as plKeywords, a7 as portugueseProfile, a8 as profiles, a9 as pt, a9 as ptDictionary, aa as ptKeywords, ab as qu, ab as quDictionary, ac as quKeywords, ad as quechuaProfile, ae as reorderRoles, af as ruDictionary, ag as ruKeywords, af as russianDictionary, ah as spanishProfile, ai as sw, ai as swDictionary, aj as swKeywords, ak as swahiliProfile, al as th, al as thDictionary, am as thKeywords, an as tl, an as tlDictionary, ao as tlKeywords, ap as toEnglish, aq as toLocale, ar as tr, ar as trDictionary, as as trKeywords, at as transformStatement, au as translate, av as turkishProfile, aw as ukDictionary, ax as ukKeywords, aw as ukrainianDictionary, ay as vi, ay as viDictionary, az as viKeywords, aA as zh, aA as zhDictionary, aB as zhKeywords } from './transformer-CzY_vHU0.cjs';
|
|
2
|
+
import { D as Dictionary } from './types-BYtpqGq3.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* English dictionary - identity mapping since English is the canonical hyperscript language.
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import { D as Dictionary } from './types-
|
|
1
|
+
export { A as AdpositionType, E as ENGLISH_COMMANDS, a as ENGLISH_KEYWORDS, G as GrammarRule, b as GrammarTransformer, c as GrammaticalMarker, K as KeywordProvider, 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 hiDictionary, J as hiKeywords, I as hindiDictionary, N as id, N as idDictionary, O as idKeywords, Q as indonesianProfile, R as insertMarkers, T as it, T as itDictionary, V as itKeywords, X as ja, X as jaDictionary, Y as jaKeywords, Z as japaneseProfile, _ as joinTokens, $ as ko, $ as koDictionary, a0 as koKeywords, a1 as koreanProfile, a2 as ms, a2 as msDictionary, a3 as msKeywords, a4 as parseStatement, a5 as pl, a5 as plDictionary, a6 as plKeywords, a7 as portugueseProfile, a8 as profiles, a9 as pt, a9 as ptDictionary, aa as ptKeywords, ab as qu, ab as quDictionary, ac as quKeywords, ad as quechuaProfile, ae as reorderRoles, af as ruDictionary, ag as ruKeywords, af as russianDictionary, ah as spanishProfile, ai as sw, ai as swDictionary, aj as swKeywords, ak as swahiliProfile, al as th, al as thDictionary, am as thKeywords, an as tl, an as tlDictionary, ao as tlKeywords, ap as toEnglish, aq as toLocale, ar as tr, ar as trDictionary, as as trKeywords, at as transformStatement, au as translate, av as turkishProfile, aw as ukDictionary, ax as ukKeywords, aw as ukrainianDictionary, ay as vi, ay as viDictionary, az as viKeywords, aA as zh, aA as zhDictionary, aB as zhKeywords } from './transformer-B0zy-kti.js';
|
|
2
|
+
import { D as Dictionary } from './types-BYtpqGq3.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* English dictionary - identity mapping since English is the canonical hyperscript language.
|
package/dist/browser.js
CHANGED
|
@@ -3230,12 +3230,10 @@ var itKeywords = createKeywordProvider(it, "it", {
|
|
|
3230
3230
|
// src/dictionaries/vi.ts
|
|
3231
3231
|
var vi = {
|
|
3232
3232
|
commands: {
|
|
3233
|
-
// Event handling
|
|
3234
3233
|
on: "khi",
|
|
3235
3234
|
tell: "n\xF3i v\u1EDBi",
|
|
3236
3235
|
trigger: "k\xEDch ho\u1EA1t",
|
|
3237
3236
|
send: "g\u1EEDi",
|
|
3238
|
-
// DOM manipulation
|
|
3239
3237
|
take: "l\u1EA5y",
|
|
3240
3238
|
put: "\u0111\u1EB7t",
|
|
3241
3239
|
set: "g\xE1n",
|
|
@@ -3245,7 +3243,6 @@ var vi = {
|
|
|
3245
3243
|
toggle: "chuy\u1EC3n \u0111\u1ED5i",
|
|
3246
3244
|
hide: "\u1EA9n",
|
|
3247
3245
|
show: "hi\u1EC3n th\u1ECB",
|
|
3248
|
-
// Control flow
|
|
3249
3246
|
if: "n\u1EBFu",
|
|
3250
3247
|
unless: "tr\u1EEB khi",
|
|
3251
3248
|
repeat: "l\u1EB7p l\u1EA1i",
|
|
@@ -3255,46 +3252,35 @@ var vi = {
|
|
|
3255
3252
|
continue: "ti\u1EBFp t\u1EE5c",
|
|
3256
3253
|
break: "d\u1EEBng",
|
|
3257
3254
|
halt: "d\u1EEBng l\u1EA1i",
|
|
3258
|
-
// Async
|
|
3259
3255
|
wait: "ch\u1EDD",
|
|
3260
3256
|
fetch: "t\u1EA3i",
|
|
3261
3257
|
call: "g\u1ECDi",
|
|
3262
3258
|
return: "tr\u1EA3 v\u1EC1",
|
|
3263
|
-
// Other commands
|
|
3264
3259
|
make: "t\u1EA1o",
|
|
3265
3260
|
log: "in ra",
|
|
3266
3261
|
throw: "n\xE9m",
|
|
3267
3262
|
catch: "b\u1EAFt",
|
|
3268
3263
|
measure: "\u0111o l\u01B0\u1EDDng",
|
|
3269
3264
|
transition: "chuy\u1EC3n ti\u1EBFp",
|
|
3270
|
-
// Data Commands
|
|
3271
3265
|
increment: "t\u0103ng",
|
|
3272
3266
|
decrement: "gi\u1EA3m",
|
|
3273
3267
|
default: "m\u1EB7c \u0111\u1ECBnh",
|
|
3274
|
-
// Navigation Commands
|
|
3275
3268
|
go: "\u0111i \u0111\u1EBFn",
|
|
3276
3269
|
pushUrl: "pushUrl",
|
|
3277
3270
|
replaceUrl: "thayTh\u1EBFUrl",
|
|
3278
|
-
// Utility Commands
|
|
3279
3271
|
copy: "sao ch\xE9p",
|
|
3280
3272
|
pick: "ch\u1ECDn",
|
|
3281
3273
|
beep: "beep",
|
|
3282
|
-
// Advanced Commands
|
|
3283
3274
|
js: "js",
|
|
3284
3275
|
async: "b\u1EA5t \u0111\u1ED3ng b\u1ED9",
|
|
3285
3276
|
render: "hi\u1EC3n th\u1ECB",
|
|
3286
|
-
// Animation Commands
|
|
3287
3277
|
swap: "ho\xE1n \u0111\u1ED5i",
|
|
3288
3278
|
morph: "bi\u1EBFn \u0111\u1ED5i",
|
|
3289
3279
|
settle: "\u1ED5n \u0111\u1ECBnh",
|
|
3290
|
-
// Content Commands
|
|
3291
3280
|
append: "n\u1ED1i",
|
|
3292
|
-
// Control Flow
|
|
3293
3281
|
exit: "tho\xE1t",
|
|
3294
|
-
// Focus
|
|
3295
3282
|
focus: "t\u1EADp trung",
|
|
3296
3283
|
blur: "m\u1EA5t t\u1EADp trung",
|
|
3297
|
-
// Additional
|
|
3298
3284
|
init: "kh\u1EDFi t\u1EA1o",
|
|
3299
3285
|
behavior: "h\xE0nh vi",
|
|
3300
3286
|
install: "c\xE0i \u0111\u1EB7t",
|
|
@@ -3351,13 +3337,14 @@ var vi = {
|
|
|
3351
3337
|
matches: "kh\u1EDBp",
|
|
3352
3338
|
exists: "t\u1ED3n t\u1EA1i",
|
|
3353
3339
|
has: "c\xF3",
|
|
3354
|
-
// possession verb (context-based)
|
|
3355
3340
|
have: "c\xF3",
|
|
3356
|
-
// same for first/third person
|
|
3357
3341
|
empty: "tr\u1ED1ng",
|
|
3358
3342
|
true: "\u0111\xFAng",
|
|
3359
3343
|
false: "sai",
|
|
3360
|
-
null: "r\u1ED7ng"
|
|
3344
|
+
null: "r\u1ED7ng",
|
|
3345
|
+
else: "kh\xF4ng th\xEC",
|
|
3346
|
+
end: "k\u1EBFt th\xFAc",
|
|
3347
|
+
then: "r\u1ED3i"
|
|
3361
3348
|
},
|
|
3362
3349
|
temporal: {
|
|
3363
3350
|
now: "b\xE2y gi\u1EDD",
|
|
@@ -3381,7 +3368,17 @@ var vi = {
|
|
|
3381
3368
|
any: "b\u1EA5t k\u1EF3",
|
|
3382
3369
|
some: "m\u1ED9t s\u1ED1",
|
|
3383
3370
|
each: "m\u1ED7i",
|
|
3384
|
-
every: "t\u1EA5t c\u1EA3"
|
|
3371
|
+
every: "t\u1EA5t c\u1EA3",
|
|
3372
|
+
body: "body",
|
|
3373
|
+
event: "s\u1EF1 ki\u1EC7n",
|
|
3374
|
+
it: "n\xF3",
|
|
3375
|
+
its: "c\u1EE7a n\xF3",
|
|
3376
|
+
me: "t\xF4i",
|
|
3377
|
+
my: "c\u1EE7a t\xF4i",
|
|
3378
|
+
result: "k\u1EBFt qu\u1EA3",
|
|
3379
|
+
target: "m\u1EE5c ti\xEAu",
|
|
3380
|
+
you: "b\u1EA1n",
|
|
3381
|
+
your: "c\u1EE7a b\u1EA1n"
|
|
3385
3382
|
},
|
|
3386
3383
|
attributes: {
|
|
3387
3384
|
id: "id",
|
|
@@ -4397,7 +4394,15 @@ var bengaliDictionary = {
|
|
|
4397
4394
|
install: "\u0987\u09A8\u09B8\u09CD\u099F\u09B2",
|
|
4398
4395
|
clone: "\u0995\u09AA\u09BF",
|
|
4399
4396
|
swap: "\u09AC\u09A6\u09B2",
|
|
4400
|
-
morph: "\u09B0\u09C2\u09AA\u09BE\u09A8\u09CD\u09A4\u09B0"
|
|
4397
|
+
morph: "\u09B0\u09C2\u09AA\u09BE\u09A8\u09CD\u09A4\u09B0",
|
|
4398
|
+
beep: "\u09AC\u09C0\u09AA",
|
|
4399
|
+
break: "\u09AD\u09BE\u0999\u09C1\u09A8",
|
|
4400
|
+
copy: "\u0995\u09AA\u09BF",
|
|
4401
|
+
exit: "\u09AC\u09C7\u09B0",
|
|
4402
|
+
js: "\u099C\u09C7\u098F\u09B8",
|
|
4403
|
+
pick: "\u09AC\u09BE\u099B\u09C1\u09A8",
|
|
4404
|
+
render: "\u09B0\u09C7\u09A8\u09CD\u09A1\u09BE\u09B0",
|
|
4405
|
+
until: "\u09AA\u09B0\u09CD\u09AF\u09A8\u09CD\u09A4"
|
|
4401
4406
|
},
|
|
4402
4407
|
modifiers: {
|
|
4403
4408
|
to: "\u0995\u09C7",
|
|
@@ -4445,14 +4450,14 @@ var bengaliDictionary = {
|
|
|
4445
4450
|
is: "\u09B9\u09AF\u09BC",
|
|
4446
4451
|
exists: "\u0986\u099B\u09C7",
|
|
4447
4452
|
has: "\u0986\u099B\u09C7",
|
|
4448
|
-
// possession verb (context-based)
|
|
4449
4453
|
have: "\u0986\u099B\u09BF",
|
|
4450
|
-
// first-person: আমার আছি
|
|
4451
4454
|
empty: "\u0996\u09BE\u09B2\u09BF",
|
|
4452
4455
|
true: "\u09B8\u09A4\u09CD\u09AF",
|
|
4453
4456
|
false: "\u09AE\u09BF\u09A5\u09CD\u09AF\u09BE",
|
|
4454
4457
|
null: "\u09B6\u09C2\u09A8\u09CD\u09AF",
|
|
4455
|
-
undefined: "\u0985\u09A8\u09BF\u09B0\u09CD\u09A7\u09BE\u09B0\u09BF\u09A4"
|
|
4458
|
+
undefined: "\u0985\u09A8\u09BF\u09B0\u09CD\u09A7\u09BE\u09B0\u09BF\u09A4",
|
|
4459
|
+
end: "\u09B6\u09C7\u09B7",
|
|
4460
|
+
then: "\u09A4\u09BE\u09B0\u09AA\u09B0"
|
|
4456
4461
|
},
|
|
4457
4462
|
temporal: {
|
|
4458
4463
|
now: "\u098F\u0996\u09A8",
|
|
@@ -4473,7 +4478,9 @@ var bengaliDictionary = {
|
|
|
4473
4478
|
result: "\u09AB\u09B2\u09BE\u09AB\u09B2",
|
|
4474
4479
|
event: "\u0998\u099F\u09A8\u09BE",
|
|
4475
4480
|
target: "\u09B2\u0995\u09CD\u09B7\u09CD\u09AF",
|
|
4476
|
-
body: "\u09AC\u09A1\u09BF"
|
|
4481
|
+
body: "\u09AC\u09A1\u09BF",
|
|
4482
|
+
you: "\u0986\u09AA\u09A8\u09BF",
|
|
4483
|
+
your: "\u09A4\u09CB\u09AE\u09BE\u09B0"
|
|
4477
4484
|
},
|
|
4478
4485
|
attributes: {
|
|
4479
4486
|
class: "\u09B6\u09CD\u09B0\u09C7\u09A3\u09BF",
|
|
@@ -4552,7 +4559,15 @@ var thaiDictionary = {
|
|
|
4552
4559
|
install: "\u0E15\u0E34\u0E14\u0E15\u0E31\u0E49\u0E07",
|
|
4553
4560
|
clone: "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01",
|
|
4554
4561
|
swap: "\u0E2A\u0E25\u0E31\u0E1A\u0E17\u0E35\u0E48",
|
|
4555
|
-
morph: "\u0E41\u0E1B\u0E25\u0E07\u0E23\u0E48\u0E32\u0E07"
|
|
4562
|
+
morph: "\u0E41\u0E1B\u0E25\u0E07\u0E23\u0E48\u0E32\u0E07",
|
|
4563
|
+
beep: "\u0E1A\u0E35\u0E4A\u0E1A",
|
|
4564
|
+
break: "\u0E02\u0E31\u0E14\u0E08\u0E31\u0E07\u0E2B\u0E27\u0E30",
|
|
4565
|
+
copy: "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01",
|
|
4566
|
+
exit: "\u0E2D\u0E2D\u0E01",
|
|
4567
|
+
js: "\u0E40\u0E08\u0E40\u0E2D\u0E2A",
|
|
4568
|
+
pick: "\u0E40\u0E25\u0E37\u0E2D\u0E01",
|
|
4569
|
+
render: "\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25",
|
|
4570
|
+
until: "\u0E08\u0E19\u0E16\u0E36\u0E07"
|
|
4556
4571
|
},
|
|
4557
4572
|
modifiers: {
|
|
4558
4573
|
to: "\u0E44\u0E1B\u0E22\u0E31\u0E07",
|
|
@@ -4600,14 +4615,14 @@ var thaiDictionary = {
|
|
|
4600
4615
|
is: "\u0E40\u0E1B\u0E47\u0E19",
|
|
4601
4616
|
exists: "\u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48",
|
|
4602
4617
|
has: "\u0E21\u0E35",
|
|
4603
|
-
// possession verb (context-based)
|
|
4604
4618
|
have: "\u0E21\u0E35",
|
|
4605
|
-
// same for first/third person
|
|
4606
4619
|
empty: "\u0E27\u0E48\u0E32\u0E07",
|
|
4607
4620
|
true: "\u0E08\u0E23\u0E34\u0E07",
|
|
4608
4621
|
false: "\u0E40\u0E17\u0E47\u0E08",
|
|
4609
4622
|
null: "\u0E27\u0E48\u0E32\u0E07",
|
|
4610
|
-
undefined: "\u0E44\u0E21\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14"
|
|
4623
|
+
undefined: "\u0E44\u0E21\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14",
|
|
4624
|
+
end: "\u0E08\u0E1A",
|
|
4625
|
+
then: "\u0E41\u0E25\u0E49\u0E27"
|
|
4611
4626
|
},
|
|
4612
4627
|
temporal: {
|
|
4613
4628
|
now: "\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49",
|
|
@@ -4628,7 +4643,9 @@ var thaiDictionary = {
|
|
|
4628
4643
|
result: "\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C",
|
|
4629
4644
|
event: "\u0E40\u0E2B\u0E15\u0E38\u0E01\u0E32\u0E23\u0E13\u0E4C",
|
|
4630
4645
|
target: "\u0E40\u0E1B\u0E49\u0E32\u0E2B\u0E21\u0E32\u0E22",
|
|
4631
|
-
body: "\u0E1A\u0E2D\u0E14\u0E35\u0E49"
|
|
4646
|
+
body: "\u0E1A\u0E2D\u0E14\u0E35\u0E49",
|
|
4647
|
+
you: "\u0E04\u0E38\u0E13",
|
|
4648
|
+
your: "\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13"
|
|
4632
4649
|
},
|
|
4633
4650
|
attributes: {
|
|
4634
4651
|
class: "\u0E04\u0E25\u0E32\u0E2A",
|