@lokascript/i18n 2.9.3 → 2.10.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 +74 -10
- 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 +74 -10
- package/dist/browser.js.map +1 -1
- package/dist/dictionaries/index.cjs +18 -10
- package/dist/dictionaries/index.cjs.map +1 -1
- package/dist/dictionaries/index.js +18 -10
- package/dist/dictionaries/index.js.map +1 -1
- package/dist/index.cjs +74 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +74 -10
- 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 +110 -10
- package/dist/lokascript-i18n.mjs.map +1 -1
- package/dist/plugins/vite.cjs +18 -10
- package/dist/plugins/vite.cjs.map +1 -1
- package/dist/plugins/vite.js +18 -10
- package/dist/plugins/vite.js.map +1 -1
- package/dist/plugins/webpack.cjs +18 -10
- package/dist/plugins/webpack.cjs.map +1 -1
- package/dist/plugins/webpack.js +18 -10
- package/dist/plugins/webpack.js.map +1 -1
- package/dist/{transformer--W46PGaW.d.cts → transformer-CsOeqayN.d.cts} +18 -1
- package/dist/{transformer-FU06J6kG.d.ts → transformer-DWCTG1DQ.d.ts} +18 -1
- package/package.json +4 -4
- package/src/dictionaries/de.ts +3 -1
- package/src/dictionaries/es.ts +2 -2
- package/src/dictionaries/pl.ts +2 -1
- package/src/dictionaries/pt.ts +5 -2
- package/src/dictionaries/ru.ts +2 -2
- package/src/dictionaries/uk.ts +2 -2
- package/src/grammar/grammar.test.ts +87 -0
- package/src/grammar/transformer.ts +106 -0
- package/src/grammar/types.ts +4 -0
|
@@ -318,12 +318,12 @@ var es = {
|
|
|
318
318
|
events: {
|
|
319
319
|
click: "clic",
|
|
320
320
|
dblclick: "dobleclic",
|
|
321
|
-
mousedown: "rat\xF3nabajo",
|
|
322
|
-
mouseup: "rat\xF3narriba",
|
|
323
321
|
mouseenter: "rat\xF3nentrar",
|
|
324
322
|
mouseleave: "rat\xF3nsalir",
|
|
325
323
|
// V3 Batch 2: fused forms split to the S5b/tokenizer-known forms (the fused
|
|
326
324
|
// spellings captured event=expression:undefined — broken listeners)
|
|
325
|
+
mousedown: "rat\xF3n abajo",
|
|
326
|
+
mouseup: "rat\xF3n arriba",
|
|
327
327
|
mouseover: "rat\xF3n encima",
|
|
328
328
|
mouseout: "rat\xF3n fuera",
|
|
329
329
|
mousemove: "rat\xF3nmover",
|
|
@@ -1214,7 +1214,9 @@ var de = {
|
|
|
1214
1214
|
reset: "zur\xFCcksetzen",
|
|
1215
1215
|
load: "laden",
|
|
1216
1216
|
unload: "entladen",
|
|
1217
|
-
|
|
1217
|
+
// 'größeändern' was a malformed compound: German either separates the verb
|
|
1218
|
+
// phrase ('Größe ändern') or compounds with the linking -n- ('Größenänderung').
|
|
1219
|
+
resize: "gr\xF6\xDFen\xE4nderung",
|
|
1218
1220
|
scroll: "scrollen",
|
|
1219
1221
|
touchstart: "ber\xFChrungstart",
|
|
1220
1222
|
touchend: "ber\xFChrungend",
|
|
@@ -2791,12 +2793,15 @@ var pt = {
|
|
|
2791
2793
|
events: {
|
|
2792
2794
|
click: "clique",
|
|
2793
2795
|
dblclick: "duploClique",
|
|
2794
|
-
mousedown: "mouseBaixo",
|
|
2795
|
-
mouseup: "mouseCima",
|
|
2796
2796
|
mouseenter: "mouseEntrar",
|
|
2797
2797
|
mouseleave: "mouseSair",
|
|
2798
2798
|
// V3 Batch 2: camelCase forms split to the S5b/tokenizer-known forms (the
|
|
2799
2799
|
// fused spellings captured event=expression:undefined — broken listeners)
|
|
2800
|
+
// pt-BR idiom is "pressionado"/"solto", not the spatial baixo/cima calque —
|
|
2801
|
+
// cf. MDN pt-BR ("um botão ... é pressionado") and Scratch pt-BR
|
|
2802
|
+
// ("mouse pressionado?"). The calques stay as profile parse alternatives.
|
|
2803
|
+
mousedown: "mouse pressionado",
|
|
2804
|
+
mouseup: "mouse solto",
|
|
2800
2805
|
mouseover: "mouse sobre",
|
|
2801
2806
|
mouseout: "mouse fora",
|
|
2802
2807
|
mousemove: "mouseMover",
|
|
@@ -3459,7 +3464,8 @@ var pl = {
|
|
|
3459
3464
|
// Batch 3: resetuj captured on.event as expression (broken listener) — profile word round-trips
|
|
3460
3465
|
load: "za\u0142aduj",
|
|
3461
3466
|
unload: "wy\u0142aduj",
|
|
3462
|
-
|
|
3467
|
+
// 'zmieńrozmiar' was a fused two-word phrase; Polish writes 'zmiana rozmiaru'.
|
|
3468
|
+
resize: "zmiana rozmiaru",
|
|
3463
3469
|
scroll: "przewi\u0144",
|
|
3464
3470
|
touchstart: "dotykstart",
|
|
3465
3471
|
touchend: "dotykkoniec",
|
|
@@ -3618,7 +3624,7 @@ var russianDictionary = {
|
|
|
3618
3624
|
morph: "\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0438\u0440\u043E\u0432\u0430\u0442\u044C",
|
|
3619
3625
|
settle: "\u0441\u0442\u0430\u0431\u0438\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C",
|
|
3620
3626
|
append: "\u0434\u043E\u043F\u0438\u0441\u0430\u0442\u044C",
|
|
3621
|
-
//
|
|
3627
|
+
// matches the ru profile primary
|
|
3622
3628
|
exit: "\u0432\u044B\u0439\u0442\u0438",
|
|
3623
3629
|
else: "\u0438\u043D\u0430\u0447\u0435",
|
|
3624
3630
|
install: "\u0438\u043D\u0441\u0442\u0430\u043B\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C",
|
|
@@ -3628,7 +3634,8 @@ var russianDictionary = {
|
|
|
3628
3634
|
focus: "\u0441\u0444\u043E\u043A\u0443\u0441\u0438\u0440\u043E\u0432\u0430\u0442\u044C",
|
|
3629
3635
|
blur: "\u0440\u0430\u0437\u043C\u044B\u0442\u044C",
|
|
3630
3636
|
clone: "\u043A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C",
|
|
3631
|
-
prepend: "\u0434\u043E\u0431\u0430\u0432\u0438\u0442\
|
|
3637
|
+
prepend: "\u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432 \u043D\u0430\u0447\u0430\u043B\u043E",
|
|
3638
|
+
// natural form; the underscore compound was never natural Russian
|
|
3632
3639
|
breakpoint: "\u0442\u043E\u0447\u043A\u0430-\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0430",
|
|
3633
3640
|
clear: "\u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",
|
|
3634
3641
|
close: "\u0437\u0430\u043A\u0440\u044B\u0442\u044C",
|
|
@@ -3860,7 +3867,7 @@ var ukrainianDictionary = {
|
|
|
3860
3867
|
morph: "\u0442\u0440\u0430\u043D\u0441\u0444\u043E\u0440\u043C\u0443\u0432\u0430\u0442\u0438",
|
|
3861
3868
|
settle: "\u0441\u0442\u0430\u0431\u0456\u043B\u0456\u0437\u0443\u0432\u0430\u0442\u0438",
|
|
3862
3869
|
append: "\u0434\u043E\u043F\u0438\u0441\u0430\u0442\u0438",
|
|
3863
|
-
//
|
|
3870
|
+
// matches the uk profile primary
|
|
3864
3871
|
exit: "\u0432\u0438\u0439\u0442\u0438",
|
|
3865
3872
|
else: "\u0456\u043D\u0430\u043A\u0448\u0435",
|
|
3866
3873
|
install: "\u0456\u043D\u0441\u0442\u0430\u043B\u044E\u0432\u0430\u0442\u0438",
|
|
@@ -3870,7 +3877,8 @@ var ukrainianDictionary = {
|
|
|
3870
3877
|
focus: "\u0441\u0444\u043E\u043A\u0443\u0441\u0443\u0432\u0430\u0442\u0438",
|
|
3871
3878
|
blur: "\u0440\u043E\u0437\u0444\u043E\u043A\u0443\u0441\u0443\u0432\u0430\u0442\u0438",
|
|
3872
3879
|
clone: "\u043A\u043B\u043E\u043D\u0443\u0432\u0430\u0442\u0438",
|
|
3873
|
-
prepend: "\u0434\u043E\u0434\u0430\u0442\
|
|
3880
|
+
prepend: "\u0434\u043E\u0434\u0430\u0442\u0438 \u043D\u0430 \u043F\u043E\u0447\u0430\u0442\u043E\u043A",
|
|
3881
|
+
// natural form; see ru.ts
|
|
3874
3882
|
breakpoint: "\u0442\u043E\u0447\u043A\u0430-\u0437\u0443\u043F\u0438\u043D\u043A\u0438",
|
|
3875
3883
|
clear: "\u043E\u0447\u0438\u0441\u0442\u0438\u0442\u0438",
|
|
3876
3884
|
close: "\u0437\u0430\u043A\u0440\u0438\u0442\u0438",
|