@lokascript/i18n 4.5.0 → 4.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 (50) hide show
  1. package/dist/browser.cjs +144 -2
  2. package/dist/browser.cjs.map +1 -1
  3. package/dist/browser.js +144 -2
  4. package/dist/browser.js.map +1 -1
  5. package/dist/dictionaries/index.cjs +142 -2
  6. package/dist/dictionaries/index.cjs.map +1 -1
  7. package/dist/dictionaries/index.js +142 -2
  8. package/dist/dictionaries/index.js.map +1 -1
  9. package/dist/index.cjs +144 -2
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.js +144 -2
  12. package/dist/index.js.map +1 -1
  13. package/dist/lokascript-i18n.min.js +1 -1
  14. package/dist/lokascript-i18n.min.js.map +1 -1
  15. package/dist/lokascript-i18n.mjs +144 -2
  16. package/dist/lokascript-i18n.mjs.map +1 -1
  17. package/dist/plugins/vite.cjs +142 -2
  18. package/dist/plugins/vite.cjs.map +1 -1
  19. package/dist/plugins/vite.js +142 -2
  20. package/dist/plugins/vite.js.map +1 -1
  21. package/dist/plugins/webpack.cjs +142 -2
  22. package/dist/plugins/webpack.cjs.map +1 -1
  23. package/dist/plugins/webpack.js +142 -2
  24. package/dist/plugins/webpack.js.map +1 -1
  25. package/package.json +2 -2
  26. package/src/constants.ts +2 -0
  27. package/src/dictionaries/ar.ts +6 -0
  28. package/src/dictionaries/bn.ts +6 -0
  29. package/src/dictionaries/de.ts +6 -0
  30. package/src/dictionaries/en.ts +2 -0
  31. package/src/dictionaries/es.ts +6 -0
  32. package/src/dictionaries/fr.ts +6 -0
  33. package/src/dictionaries/he.ts +6 -0
  34. package/src/dictionaries/hi.ts +6 -0
  35. package/src/dictionaries/id.ts +6 -0
  36. package/src/dictionaries/it.ts +6 -0
  37. package/src/dictionaries/ja.ts +8 -2
  38. package/src/dictionaries/ko.ts +6 -0
  39. package/src/dictionaries/ms.ts +6 -0
  40. package/src/dictionaries/pl.ts +6 -0
  41. package/src/dictionaries/pt.ts +6 -0
  42. package/src/dictionaries/qu.ts +6 -0
  43. package/src/dictionaries/ru.ts +6 -0
  44. package/src/dictionaries/sw.ts +6 -0
  45. package/src/dictionaries/th.ts +6 -0
  46. package/src/dictionaries/tl.ts +6 -0
  47. package/src/dictionaries/tr.ts +6 -0
  48. package/src/dictionaries/uk.ts +6 -0
  49. package/src/dictionaries/vi.ts +6 -0
  50. package/src/dictionaries/zh.ts +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokascript/i18n",
3
- "version": "4.5.0",
3
+ "version": "4.6.0",
4
4
  "description": "Keyword dictionaries, keyword providers and grammar profiles for hyperscript",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -64,7 +64,7 @@
64
64
  },
65
65
  "homepage": "https://github.com/codetalcott/hyperfixi/tree/main/packages/i18n#readme",
66
66
  "dependencies": {
67
- "@lokascript/semantic": "^4.5.0",
67
+ "@lokascript/semantic": "^4.6.0",
68
68
  "esbuild": "^0.25.12",
69
69
  "happy-dom": "^20.14.5",
70
70
  "vite": "^8.3.1"
package/src/constants.ts CHANGED
@@ -102,7 +102,9 @@ export const ENGLISH_MODIFIERS: Set<string> = new Set([
102
102
  */
103
103
  export const ENGLISH_COMMANDS: Set<string> = new Set([
104
104
  'add',
105
+ 'answer',
105
106
  'append',
107
+ 'ask',
106
108
  'async',
107
109
  'beep',
108
110
  'blur', // v0.9.90 phase 1
@@ -36,6 +36,8 @@ export const ar: Dictionary = {
36
36
  return: 'ارجع',
37
37
  make: 'اصنع',
38
38
  log: 'سجل',
39
+ ask: 'اسأل',
40
+ answer: 'أجب',
39
41
  throw: 'ارم',
40
42
  catch: 'التقط',
41
43
  measure: 'قس',
@@ -194,6 +196,10 @@ export const ar: Dictionary = {
194
196
  },
195
197
 
196
198
  expressions: {
199
+ up: 'أعلى',
200
+ down: 'أسفل',
201
+ left: 'يسار',
202
+ right: 'يمين',
197
203
  back: 'خلفا',
198
204
  elsewhere: 'الخارج',
199
205
  index: 'مؤشر',
@@ -27,6 +27,8 @@ export const bengaliDictionary: Dictionary = {
27
27
  call: 'কল',
28
28
  return: 'ফিরুন',
29
29
  log: 'লগ',
30
+ ask: 'জিজ্ঞাসা',
31
+ answer: 'উত্তর',
30
32
  trigger: 'ট্রিগার',
31
33
  send: 'পাঠান',
32
34
  go: 'যান',
@@ -171,6 +173,10 @@ export const bengaliDictionary: Dictionary = {
171
173
  },
172
174
 
173
175
  expressions: {
176
+ up: 'উপরে',
177
+ down: 'নিচে',
178
+ left: 'বামে',
179
+ right: 'ডানে',
174
180
  back: 'পিছনে',
175
181
  elsewhere: 'বাইরে',
176
182
  start: 'আরম্ভ',
@@ -41,6 +41,8 @@ export const de: Dictionary = {
41
41
  return: 'zurückgeben',
42
42
  make: 'erstellen',
43
43
  log: 'protokollieren',
44
+ ask: 'frage',
45
+ answer: 'antworte',
44
46
  throw: 'werfen',
45
47
  catch: 'fangen',
46
48
  measure: 'messen',
@@ -207,6 +209,10 @@ export const de: Dictionary = {
207
209
  },
208
210
 
209
211
  expressions: {
212
+ up: 'hoch',
213
+ down: 'runter',
214
+ left: 'links',
215
+ right: 'rechts',
210
216
  back: 'zurück',
211
217
  elsewhere: 'außerhalb',
212
218
  index: 'index',
@@ -45,6 +45,8 @@ export const en: Dictionary = {
45
45
  // Other commands
46
46
  make: 'make',
47
47
  log: 'log',
48
+ ask: 'ask',
49
+ answer: 'answer',
48
50
  throw: 'throw',
49
51
  catch: 'catch',
50
52
  measure: 'measure',
@@ -33,6 +33,8 @@ export const es: Dictionary = {
33
33
  return: 'retornar',
34
34
  make: 'hacer',
35
35
  log: 'registrar',
36
+ ask: 'preguntar',
37
+ answer: 'responder',
36
38
  throw: 'lanzar',
37
39
  catch: 'atrapar',
38
40
  measure: 'medir',
@@ -189,6 +191,10 @@ export const es: Dictionary = {
189
191
  },
190
192
 
191
193
  expressions: {
194
+ up: 'arriba',
195
+ down: 'abajo',
196
+ left: 'izquierda',
197
+ right: 'derecha',
192
198
  back: 'atrás',
193
199
  elsewhere: 'afuera',
194
200
  index: 'índice',
@@ -36,6 +36,8 @@ export const fr: Dictionary = {
36
36
  return: 'retourner',
37
37
  make: 'créer',
38
38
  log: 'enregistrer',
39
+ ask: 'demander',
40
+ answer: 'répondre',
39
41
  throw: 'lancer',
40
42
  catch: 'attraper',
41
43
  measure: 'mesurer',
@@ -197,6 +199,10 @@ export const fr: Dictionary = {
197
199
  },
198
200
 
199
201
  expressions: {
202
+ up: 'haut',
203
+ down: 'bas',
204
+ left: 'gauche',
205
+ right: 'droite',
200
206
  back: 'arrière',
201
207
  elsewhere: 'ailleurs',
202
208
  index: 'indice',
@@ -29,6 +29,8 @@ export const he: Dictionary = {
29
29
  install: 'התקן',
30
30
  js: 'js',
31
31
  log: 'רשום',
32
+ ask: 'שאל',
33
+ answer: 'ענה',
32
34
  make: 'צור',
33
35
  measure: 'מדוד',
34
36
  morph: 'הפוך',
@@ -120,6 +122,10 @@ export const he: Dictionary = {
120
122
  attributes: {},
121
123
 
122
124
  expressions: {
125
+ up: 'למעלה',
126
+ down: 'למטה',
127
+ left: 'שמאלה',
128
+ right: 'ימינה',
123
129
  back: 'אחורה',
124
130
  elsewhere: 'חוץ',
125
131
  index: 'אינדקס',
@@ -33,6 +33,8 @@ export const hindiDictionary: Dictionary = {
33
33
  return: 'लौटाएं',
34
34
  make: 'बनाएं',
35
35
  log: 'लॉग',
36
+ ask: 'पूछें',
37
+ answer: 'जवाब',
36
38
  throw: 'फेंकें',
37
39
  catch: 'पकड़ें',
38
40
  measure: 'मापें',
@@ -219,6 +221,10 @@ export const hindiDictionary: Dictionary = {
219
221
  },
220
222
 
221
223
  expressions: {
224
+ up: 'ऊपर',
225
+ down: 'नीचे',
226
+ left: 'बाएं',
227
+ right: 'दाएं',
222
228
  back: 'पीछे',
223
229
  elsewhere: 'अन्यत्र',
224
230
  index: 'सूचकांक',
@@ -36,6 +36,8 @@ export const id: Dictionary = {
36
36
  return: 'kembali',
37
37
  make: 'buat',
38
38
  log: 'catat',
39
+ ask: 'tanya',
40
+ answer: 'jawab',
39
41
  throw: 'lempar',
40
42
  catch: 'tangkap',
41
43
  measure: 'ukur',
@@ -206,6 +208,10 @@ export const id: Dictionary = {
206
208
  },
207
209
 
208
210
  expressions: {
211
+ up: 'atas',
212
+ down: 'bawah',
213
+ left: 'kiri',
214
+ right: 'kanan',
209
215
  back: 'mundur',
210
216
  elsewhere: 'luaran',
211
217
  index: 'indeks',
@@ -33,6 +33,8 @@ export const it: Dictionary = {
33
33
  return: 'ritornare',
34
34
  make: 'fare',
35
35
  log: 'registrare',
36
+ ask: 'chiedi',
37
+ answer: 'rispondi',
36
38
  throw: 'lanciare',
37
39
  catch: 'catturare',
38
40
  measure: 'misurare',
@@ -194,6 +196,10 @@ export const it: Dictionary = {
194
196
  },
195
197
 
196
198
  expressions: {
199
+ up: 'sopra',
200
+ down: 'sotto',
201
+ left: 'sinistra',
202
+ right: 'destra',
197
203
  back: 'indietro',
198
204
  elsewhere: 'altrove',
199
205
  index: 'indice',
@@ -33,6 +33,8 @@ export const ja: Dictionary = {
33
33
  return: '戻る',
34
34
  make: '作る',
35
35
  log: '記録',
36
+ ask: '尋ねる',
37
+ answer: '答える',
36
38
  throw: '投げる',
37
39
  catch: '捕まえる',
38
40
  measure: '測定',
@@ -54,8 +56,8 @@ export const ja: Dictionary = {
54
56
  settle: '安定',
55
57
  append: '末尾追加',
56
58
  // 終了 → 退出: realigned to the semantic profile primary (ja.ts `exit: 退出`).
57
- // 終了 was the historic exit/end collision word (see isEndKeyword's ja note);
58
- // rendered as 終了 it tokenized as a plain identifier, so a guard-clause
59
+ // 終了 was the historic exit/end collision word (see the ja note in semantic's
60
+ // parser/end-keywords.ts); rendered as 終了 it tokenized as a plain identifier, so a guard-clause
59
61
  // `exit` inside `if … end` never parsed (behavior-sortable ja).
60
62
  exit: '退出',
61
63
  install: 'インストール',
@@ -198,6 +200,10 @@ export const ja: Dictionary = {
198
200
  },
199
201
 
200
202
  expressions: {
203
+ up: '上',
204
+ down: '下',
205
+ left: '左',
206
+ right: '右',
201
207
  back: 'バック',
202
208
  elsewhere: '外側',
203
209
  index: 'インデックス',
@@ -33,6 +33,8 @@ export const ko: Dictionary = {
33
33
  return: '반환',
34
34
  make: '만들다',
35
35
  log: '로그',
36
+ ask: '질문',
37
+ answer: '답변',
36
38
  throw: '던지다',
37
39
  catch: '잡다',
38
40
  measure: '측정',
@@ -194,6 +196,10 @@ export const ko: Dictionary = {
194
196
  },
195
197
 
196
198
  expressions: {
199
+ up: '위쪽',
200
+ down: '아래쪽',
201
+ left: '왼쪽',
202
+ right: '오른쪽',
197
203
  back: '뒤로',
198
204
  elsewhere: '바깥',
199
205
  index: '인덱스',
@@ -33,6 +33,8 @@ export const malayDictionary: Dictionary = {
33
33
  return: 'pulang',
34
34
  make: 'buat',
35
35
  log: 'catat',
36
+ ask: 'tanya',
37
+ answer: 'jawab',
36
38
  throw: 'lempar',
37
39
  catch: 'tangkap',
38
40
  measure: 'ukur',
@@ -212,6 +214,10 @@ export const malayDictionary: Dictionary = {
212
214
  },
213
215
 
214
216
  expressions: {
217
+ up: 'atas',
218
+ down: 'bawah',
219
+ left: 'kiri',
220
+ right: 'kanan',
215
221
  back: 'undur',
216
222
  elsewhere: 'luar',
217
223
  start: 'memulakan',
@@ -40,6 +40,8 @@ export const pl: Dictionary = {
40
40
  return: 'zwróć',
41
41
  make: 'utwórz',
42
42
  log: 'loguj',
43
+ ask: 'zapytaj',
44
+ answer: 'odpowiedz',
43
45
  throw: 'rzuć',
44
46
  catch: 'złap',
45
47
  measure: 'zmierz',
@@ -200,6 +202,10 @@ export const pl: Dictionary = {
200
202
  },
201
203
 
202
204
  expressions: {
205
+ up: 'w górę',
206
+ down: 'w dół',
207
+ left: 'w lewo',
208
+ right: 'w prawo',
203
209
  back: 'wstecz',
204
210
  elsewhere: 'zewnątrz',
205
211
  index: 'indeks',
@@ -37,6 +37,8 @@ export const pt: Dictionary = {
37
37
  return: 'retornar',
38
38
  make: 'fazer',
39
39
  log: 'registrar',
40
+ ask: 'perguntar',
41
+ answer: 'responder',
40
42
  throw: 'lançar',
41
43
  catch: 'capturar',
42
44
  measure: 'medir',
@@ -198,6 +200,10 @@ export const pt: Dictionary = {
198
200
  },
199
201
 
200
202
  expressions: {
203
+ up: 'acima',
204
+ down: 'abaixo',
205
+ left: 'esquerda',
206
+ right: 'direita',
201
207
  back: 'atrás',
202
208
  elsewhere: 'exterior',
203
209
  index: 'índice',
@@ -47,6 +47,8 @@ export const qu: Dictionary = {
47
47
  // Emitting qillqay for log made the parser read every transformed log as
48
48
  // copy (log-value/log-element/get-value lossy) — same realign as set above.
49
49
  log: 'qillqakuy',
50
+ ask: 'tapuy',
51
+ answer: 'kutichipuy',
50
52
  throw: 'wikchuy',
51
53
  catch: 'hapsiy',
52
54
  measure: 'tupuy',
@@ -217,6 +219,10 @@ export const qu: Dictionary = {
217
219
  },
218
220
 
219
221
  expressions: {
222
+ up: 'hanaq',
223
+ down: 'uray',
224
+ left: 'lluqi',
225
+ right: 'paña',
220
226
  back: 'kutiy',
221
227
  elsewhere: 'hawa',
222
228
  index: 'yupay',
@@ -37,6 +37,8 @@ export const russianDictionary: Dictionary = {
37
37
  return: 'вернуть',
38
38
  make: 'создать',
39
39
  log: 'записать',
40
+ ask: 'спросить',
41
+ answer: 'ответить',
40
42
  throw: 'бросить',
41
43
  catch: 'поймать',
42
44
  measure: 'измерить',
@@ -219,6 +221,10 @@ export const russianDictionary: Dictionary = {
219
221
  },
220
222
 
221
223
  expressions: {
224
+ up: 'вверх',
225
+ down: 'вниз',
226
+ left: 'влево',
227
+ right: 'вправо',
222
228
  back: 'назад',
223
229
  elsewhere: 'снаружи',
224
230
  index: 'индекс',
@@ -42,6 +42,8 @@ export const sw: Dictionary = {
42
42
  return: 'rudisha',
43
43
  make: 'tengeneza', // auditor: dict emitted a word the profile reads differently
44
44
  log: 'andika',
45
+ ask: 'uliza',
46
+ answer: 'jibu',
45
47
  throw: 'tupa',
46
48
  catch: 'shika',
47
49
  measure: 'pima',
@@ -216,6 +218,10 @@ export const sw: Dictionary = {
216
218
  },
217
219
 
218
220
  expressions: {
221
+ up: 'kupanda',
222
+ down: 'kushuka',
223
+ left: 'kushoto',
224
+ right: 'kulia',
219
225
  back: 'kurudi',
220
226
  elsewhere: 'kwingineko',
221
227
  index: 'faharasa',
@@ -27,6 +27,8 @@ export const thaiDictionary: Dictionary = {
27
27
  call: 'เรียก',
28
28
  return: 'คืนค่า',
29
29
  log: 'บันทึก',
30
+ ask: 'ถาม',
31
+ answer: 'ตอบ',
30
32
  trigger: 'ทริกเกอร์',
31
33
  send: 'ส่ง',
32
34
  go: 'ไป',
@@ -169,6 +171,10 @@ export const thaiDictionary: Dictionary = {
169
171
  },
170
172
 
171
173
  expressions: {
174
+ up: 'ขึ้น',
175
+ down: 'ลง',
176
+ left: 'ซ้าย',
177
+ right: 'ขวา',
172
178
  back: 'ย้อน',
173
179
  elsewhere: 'ภายนอก',
174
180
  start: 'เริ่ม',
@@ -36,6 +36,8 @@ export const tagalogDictionary: Dictionary = {
36
36
  return: 'ibalik',
37
37
  make: 'gumawa',
38
38
  log: 'itala',
39
+ ask: 'tanungin',
40
+ answer: 'sagutin',
39
41
  throw: 'ihagis',
40
42
  catch: 'hulihin',
41
43
  measure: 'sukatin',
@@ -220,6 +222,10 @@ export const tagalogDictionary: Dictionary = {
220
222
  },
221
223
 
222
224
  expressions: {
225
+ up: 'pataas',
226
+ down: 'pababa',
227
+ left: 'pakaliwa',
228
+ right: 'pakanan',
223
229
  back: 'pabalik',
224
230
  elsewhere: 'labas',
225
231
  start: 'umpisahan',
@@ -37,6 +37,8 @@ export const tr: Dictionary = {
37
37
  return: 'dön',
38
38
  make: 'yap',
39
39
  log: 'kaydet',
40
+ ask: 'sor',
41
+ answer: 'cevapla',
40
42
  throw: 'fırlat',
41
43
  catch: 'yakala',
42
44
  measure: 'ölç',
@@ -202,6 +204,10 @@ export const tr: Dictionary = {
202
204
  },
203
205
 
204
206
  expressions: {
207
+ up: 'yukarı',
208
+ down: 'aşağı',
209
+ left: 'sola',
210
+ right: 'sağa',
205
211
  back: 'geri',
206
212
  elsewhere: 'dışarı',
207
213
  index: 'indeks',
@@ -37,6 +37,8 @@ export const ukrainianDictionary: Dictionary = {
37
37
  return: 'повернути',
38
38
  make: 'створити',
39
39
  log: 'записати',
40
+ ask: 'запитати',
41
+ answer: 'відповісти',
40
42
  throw: 'кинути',
41
43
  catch: 'зловити',
42
44
  measure: 'виміряти',
@@ -218,6 +220,10 @@ export const ukrainianDictionary: Dictionary = {
218
220
  },
219
221
 
220
222
  expressions: {
223
+ up: 'вгору',
224
+ down: 'вниз',
225
+ left: 'вліво',
226
+ right: 'вправо',
221
227
  back: 'назад',
222
228
  elsewhere: 'ззовні',
223
229
  index: 'індекс',
@@ -33,6 +33,8 @@ export const vi: Dictionary = {
33
33
  return: 'trả về',
34
34
  make: 'tạo',
35
35
  log: 'in ra',
36
+ ask: 'hỏi',
37
+ answer: 'trả lời',
36
38
  throw: 'ném',
37
39
  catch: 'bắt',
38
40
  measure: 'đo lường',
@@ -191,6 +193,10 @@ export const vi: Dictionary = {
191
193
  },
192
194
 
193
195
  expressions: {
196
+ up: 'lên',
197
+ down: 'xuống',
198
+ left: 'trái',
199
+ right: 'phải',
194
200
  back: 'lùi',
195
201
  elsewhere: 'ngoài',
196
202
  index: 'chỉ số',
@@ -40,6 +40,8 @@ export const zh: Dictionary = {
40
40
  return: '返回',
41
41
  make: '制作',
42
42
  log: '日志',
43
+ ask: '询问',
44
+ answer: '回答',
43
45
  throw: '抛出',
44
46
  catch: '捕获',
45
47
  measure: '测量',
@@ -207,6 +209,10 @@ export const zh: Dictionary = {
207
209
  },
208
210
 
209
211
  expressions: {
212
+ up: '向上',
213
+ down: '向下',
214
+ left: '向左',
215
+ right: '向右',
210
216
  back: '后退',
211
217
  elsewhere: '外部',
212
218
  index: '索引',