@lokascript/i18n 4.3.0 → 4.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.
Files changed (48) hide show
  1. package/dist/browser.cjs +206 -5
  2. package/dist/browser.cjs.map +1 -1
  3. package/dist/browser.js +206 -5
  4. package/dist/browser.js.map +1 -1
  5. package/dist/dictionaries/index.cjs +206 -5
  6. package/dist/dictionaries/index.cjs.map +1 -1
  7. package/dist/dictionaries/index.js +206 -5
  8. package/dist/dictionaries/index.js.map +1 -1
  9. package/dist/index.cjs +206 -5
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.js +206 -5
  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 +201 -2
  16. package/dist/lokascript-i18n.mjs.map +1 -1
  17. package/dist/plugins/vite.cjs +206 -5
  18. package/dist/plugins/vite.cjs.map +1 -1
  19. package/dist/plugins/vite.js +206 -5
  20. package/dist/plugins/vite.js.map +1 -1
  21. package/dist/plugins/webpack.cjs +206 -5
  22. package/dist/plugins/webpack.cjs.map +1 -1
  23. package/dist/plugins/webpack.js +206 -5
  24. package/dist/plugins/webpack.js.map +1 -1
  25. package/package.json +2 -2
  26. package/src/dictionaries/ar.ts +8 -0
  27. package/src/dictionaries/bn.ts +9 -0
  28. package/src/dictionaries/de.ts +8 -0
  29. package/src/dictionaries/es.ts +8 -0
  30. package/src/dictionaries/fr.ts +8 -0
  31. package/src/dictionaries/he.ts +26 -0
  32. package/src/dictionaries/hi.ts +8 -1
  33. package/src/dictionaries/id.ts +8 -0
  34. package/src/dictionaries/it.ts +8 -0
  35. package/src/dictionaries/ja.ts +9 -1
  36. package/src/dictionaries/ko.ts +8 -0
  37. package/src/dictionaries/ms.ts +6 -0
  38. package/src/dictionaries/pl.ts +8 -0
  39. package/src/dictionaries/pt.ts +8 -0
  40. package/src/dictionaries/qu.ts +8 -0
  41. package/src/dictionaries/ru.ts +7 -0
  42. package/src/dictionaries/sw.ts +8 -0
  43. package/src/dictionaries/th.ts +9 -0
  44. package/src/dictionaries/tl.ts +6 -0
  45. package/src/dictionaries/tr.ts +8 -0
  46. package/src/dictionaries/uk.ts +7 -0
  47. package/src/dictionaries/vi.ts +10 -0
  48. package/src/dictionaries/zh.ts +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokascript/i18n",
3
- "version": "4.3.0",
3
+ "version": "4.5.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.3.0",
67
+ "@lokascript/semantic": "^4.5.0",
68
68
  "esbuild": "^0.25.12",
69
69
  "happy-dom": "^20.14.5",
70
70
  "vite": "^8.3.1"
@@ -142,6 +142,7 @@ export const ar: Dictionary = {
142
142
  },
143
143
 
144
144
  temporal: {
145
+ forever: 'دائما',
145
146
  seconds: 'ثوانِ',
146
147
  second: 'ثانية',
147
148
  milliseconds: 'ميلي ثانية',
@@ -193,6 +194,13 @@ export const ar: Dictionary = {
193
194
  },
194
195
 
195
196
  expressions: {
197
+ back: 'خلفا',
198
+ elsewhere: 'الخارج',
199
+ index: 'مؤشر',
200
+ start: 'ابدأ',
201
+ catch: 'التقط',
202
+ finally: 'أخيرا',
203
+ def: 'دالة',
196
204
  characters: 'حروف',
197
205
  inclusive: 'شامل',
198
206
  exclusive: 'حصري',
@@ -144,6 +144,9 @@ export const bengaliDictionary: Dictionary = {
144
144
  },
145
145
 
146
146
  values: {
147
+ document: 'ডকুমেন্ট',
148
+ window: 'উইন্ডো',
149
+ element: 'উপাদান',
147
150
  me: 'আমি',
148
151
  my: 'আমার',
149
152
  it: 'এটি',
@@ -168,6 +171,12 @@ export const bengaliDictionary: Dictionary = {
168
171
  },
169
172
 
170
173
  expressions: {
174
+ back: 'পিছনে',
175
+ elsewhere: 'বাইরে',
176
+ start: 'আরম্ভ',
177
+ catch: 'ধরুন',
178
+ finally: 'অবশেষে',
179
+ def: 'ফাংশন',
171
180
  characters: 'অক্ষর',
172
181
  inclusive: 'অন্তর্ভুক্ত',
173
182
  exclusive: 'বাদ',
@@ -155,6 +155,7 @@ export const de: Dictionary = {
155
155
  },
156
156
 
157
157
  temporal: {
158
+ forever: 'endlos',
158
159
  seconds: 'sekunden',
159
160
  second: 'sekunde',
160
161
  milliseconds: 'millisekunden',
@@ -206,6 +207,13 @@ export const de: Dictionary = {
206
207
  },
207
208
 
208
209
  expressions: {
210
+ back: 'zurück',
211
+ elsewhere: 'außerhalb',
212
+ index: 'index',
213
+ start: 'starte',
214
+ catch: 'fangen',
215
+ finally: 'schließlich',
216
+ def: 'funktion',
209
217
  characters: 'Zeichen',
210
218
  inclusive: 'inklusiv',
211
219
  exclusive: 'exklusiv',
@@ -137,6 +137,7 @@ export const es: Dictionary = {
137
137
  },
138
138
 
139
139
  temporal: {
140
+ forever: 'siempre',
140
141
  seconds: 'segundos',
141
142
  second: 'segundo',
142
143
  milliseconds: 'milisegundos',
@@ -188,6 +189,13 @@ export const es: Dictionary = {
188
189
  },
189
190
 
190
191
  expressions: {
192
+ back: 'atrás',
193
+ elsewhere: 'afuera',
194
+ index: 'índice',
195
+ start: 'comenzar',
196
+ catch: 'atrapar',
197
+ finally: 'finalmente',
198
+ def: 'función',
191
199
  characters: 'caracteres',
192
200
  inclusive: 'inclusivo',
193
201
  exclusive: 'exclusivo',
@@ -145,6 +145,7 @@ export const fr: Dictionary = {
145
145
  },
146
146
 
147
147
  temporal: {
148
+ forever: 'toujours',
148
149
  seconds: 'secondes',
149
150
  second: 'seconde',
150
151
  milliseconds: 'millisecondes',
@@ -196,6 +197,13 @@ export const fr: Dictionary = {
196
197
  },
197
198
 
198
199
  expressions: {
200
+ back: 'arrière',
201
+ elsewhere: 'ailleurs',
202
+ index: 'indice',
203
+ start: 'démarrer',
204
+ catch: 'attraper',
205
+ finally: 'finalement',
206
+ def: 'fonction',
199
207
  characters: 'caractères',
200
208
  inclusive: 'inclusif',
201
209
  exclusive: 'exclusif',
@@ -60,9 +60,14 @@ export const he: Dictionary = {
60
60
  after: 'אחרי',
61
61
  before: 'לפני',
62
62
  from: 'מ',
63
+ in: 'בתוך',
64
+ as: 'כ',
65
+ of: 'של',
66
+ at: 'ב',
63
67
  into: 'לתוך',
64
68
  to: 'על',
65
69
  with: 'עם',
70
+ between: 'בין',
66
71
  },
67
72
 
68
73
  events: {
@@ -84,13 +89,22 @@ export const he: Dictionary = {
84
89
  changes: 'משתנה',
85
90
  when: 'כאשר',
86
91
  where: 'איפה',
92
+ or: 'או',
93
+ not: 'לא',
94
+ is: 'הוא',
95
+ exists: 'קיים',
96
+ matches: 'תואם',
87
97
  },
88
98
 
89
99
  temporal: {
100
+ forever: 'תמיד',
90
101
  times: 'פעמים',
91
102
  },
92
103
 
93
104
  values: {
105
+ document: 'מסמך',
106
+ window: 'חלון',
107
+ element: 'אלמנט',
94
108
  body: 'גוף',
95
109
  event: 'אירוע',
96
110
  it: 'זה',
@@ -106,10 +120,22 @@ export const he: Dictionary = {
106
120
  attributes: {},
107
121
 
108
122
  expressions: {
123
+ back: 'אחורה',
124
+ elsewhere: 'חוץ',
125
+ index: 'אינדקס',
126
+ start: 'יזום',
127
+ catch: 'תפוס',
128
+ finally: 'סופית',
129
+ def: 'פונקציה',
109
130
  random: 'אקראי',
110
131
  characters: 'תווים',
111
132
  inclusive: 'כולל',
112
133
  exclusive: 'בלעדי',
113
134
  last: 'אחרון',
135
+ first: 'ראשון',
136
+ next: 'הבא',
137
+ previous: 'הקודם',
138
+ closest: 'הקרוב',
139
+ empty: 'ריק',
114
140
  },
115
141
  };
@@ -84,7 +84,7 @@ export const hindiDictionary: Dictionary = {
84
84
  after: 'के बाद',
85
85
  over: 'के_ऊपर',
86
86
  under: 'के_नीचे',
87
- between: 'के_बीच',
87
+ between: 'के बीच', // spaced: के_बीच splits at _ in the hi extractor (M2 A6)
88
88
  through: 'के_माध्यम_से',
89
89
  without: 'के_बिना',
90
90
  on: 'पर',
@@ -219,6 +219,13 @@ export const hindiDictionary: Dictionary = {
219
219
  },
220
220
 
221
221
  expressions: {
222
+ back: 'पीछे',
223
+ elsewhere: 'अन्यत्र',
224
+ index: 'सूचकांक',
225
+ start: 'शुरू',
226
+ catch: 'पकड़ें',
227
+ finally: 'अंततः',
228
+ def: 'फ़ंक्शन',
222
229
  characters: 'अक्षर',
223
230
  first: 'पहला',
224
231
  last: 'अंतिम',
@@ -154,6 +154,7 @@ export const id: Dictionary = {
154
154
  },
155
155
 
156
156
  temporal: {
157
+ forever: 'selamanya',
157
158
  seconds: 'detik',
158
159
  second: 'detik',
159
160
  milliseconds: 'milidetik',
@@ -205,6 +206,13 @@ export const id: Dictionary = {
205
206
  },
206
207
 
207
208
  expressions: {
209
+ back: 'mundur',
210
+ elsewhere: 'luaran',
211
+ index: 'indeks',
212
+ start: 'memulai',
213
+ catch: 'menangkap',
214
+ finally: 'akhirnya',
215
+ def: 'fungsi',
208
216
  characters: 'karakter',
209
217
  inclusive: 'inklusif',
210
218
  exclusive: 'eksklusif',
@@ -142,6 +142,7 @@ export const it: Dictionary = {
142
142
  },
143
143
 
144
144
  temporal: {
145
+ forever: 'sempre',
145
146
  seconds: 'secondi',
146
147
  second: 'secondo',
147
148
  milliseconds: 'millisecondi',
@@ -193,6 +194,13 @@ export const it: Dictionary = {
193
194
  },
194
195
 
195
196
  expressions: {
197
+ back: 'indietro',
198
+ elsewhere: 'altrove',
199
+ index: 'indice',
200
+ start: 'avvia',
201
+ catch: 'catturare',
202
+ finally: 'infine',
203
+ def: 'funzione',
196
204
  characters: 'caratteri',
197
205
  inclusive: 'inclusivo',
198
206
  exclusive: 'esclusivo',
@@ -83,7 +83,7 @@ export const ja: Dictionary = {
83
83
  after: '後に',
84
84
  over: '上に',
85
85
  under: '下に',
86
- between: '間に',
86
+ between: 'の間で', // 間 alone is ja's `while` (M2 A6)
87
87
  through: '通して',
88
88
  without: 'なしで',
89
89
  },
@@ -146,6 +146,7 @@ export const ja: Dictionary = {
146
146
  },
147
147
 
148
148
  temporal: {
149
+ forever: 'ずっと',
149
150
  seconds: '秒',
150
151
  second: '秒',
151
152
  milliseconds: 'ミリ秒',
@@ -197,6 +198,13 @@ export const ja: Dictionary = {
197
198
  },
198
199
 
199
200
  expressions: {
201
+ back: 'バック',
202
+ elsewhere: '外側',
203
+ index: 'インデックス',
204
+ start: '開始',
205
+ catch: '捕まえる',
206
+ finally: '最終的に',
207
+ def: '関数',
200
208
  characters: '文字',
201
209
  inclusive: '含む',
202
210
  exclusive: '除く',
@@ -142,6 +142,7 @@ export const ko: Dictionary = {
142
142
  },
143
143
 
144
144
  temporal: {
145
+ forever: '영원히',
145
146
  seconds: '초',
146
147
  second: '초',
147
148
  milliseconds: '밀리초',
@@ -193,6 +194,13 @@ export const ko: Dictionary = {
193
194
  },
194
195
 
195
196
  expressions: {
197
+ back: '뒤로',
198
+ elsewhere: '바깥',
199
+ index: '인덱스',
200
+ start: '시작',
201
+ catch: '잡다',
202
+ finally: '결국',
203
+ def: '함수',
196
204
  characters: '문자',
197
205
  inclusive: '포함',
198
206
  exclusive: '제외',
@@ -212,6 +212,12 @@ export const malayDictionary: Dictionary = {
212
212
  },
213
213
 
214
214
  expressions: {
215
+ back: 'undur',
216
+ elsewhere: 'luar',
217
+ start: 'memulakan',
218
+ catch: 'tangkap',
219
+ finally: 'akhirnya',
220
+ def: 'fungsi',
215
221
  characters: 'aksara',
216
222
  inclusive: 'inklusif',
217
223
  exclusive: 'eksklusif',
@@ -148,6 +148,7 @@ export const pl: Dictionary = {
148
148
  },
149
149
 
150
150
  temporal: {
151
+ forever: 'zawsze',
151
152
  seconds: 'sekundy',
152
153
  second: 'sekunda',
153
154
  milliseconds: 'milisekundy',
@@ -199,6 +200,13 @@ export const pl: Dictionary = {
199
200
  },
200
201
 
201
202
  expressions: {
203
+ back: 'wstecz',
204
+ elsewhere: 'zewnątrz',
205
+ index: 'indeks',
206
+ start: 'rozpocznij',
207
+ catch: 'złap',
208
+ finally: 'ostatecznie',
209
+ def: 'funkcja',
202
210
  characters: 'znaki',
203
211
  inclusive: 'włącznie',
204
212
  exclusive: 'wyłącznie',
@@ -146,6 +146,7 @@ export const pt: Dictionary = {
146
146
  },
147
147
 
148
148
  temporal: {
149
+ forever: 'sempre',
149
150
  seconds: 'segundos',
150
151
  second: 'segundo',
151
152
  milliseconds: 'milissegundos',
@@ -197,6 +198,13 @@ export const pt: Dictionary = {
197
198
  },
198
199
 
199
200
  expressions: {
201
+ back: 'atrás',
202
+ elsewhere: 'exterior',
203
+ index: 'índice',
204
+ start: 'começar',
205
+ catch: 'capturar',
206
+ finally: 'finalmente',
207
+ def: 'função',
200
208
  characters: 'caracteres',
201
209
  inclusive: 'inclusivo',
202
210
  exclusive: 'exclusivo',
@@ -165,6 +165,7 @@ export const qu: Dictionary = {
165
165
  },
166
166
 
167
167
  temporal: {
168
+ forever: 'wiñay',
168
169
  seconds: 'sikundukuna',
169
170
  second: 'sikundu',
170
171
  milliseconds: 'iskay_paqta_sikundukuna',
@@ -216,6 +217,13 @@ export const qu: Dictionary = {
216
217
  },
217
218
 
218
219
  expressions: {
220
+ back: 'kutiy',
221
+ elsewhere: 'hawa',
222
+ index: 'yupay',
223
+ start: 'qallay',
224
+ catch: 'hapsiy',
225
+ finally: 'qhipamanqa',
226
+ def: 'rurana',
219
227
  // Pick unit word (arc 3): native-first per qu convention — `sanampa`
220
228
  // ("sign/letter", the standard term for alphabet characters) over a
221
229
  // loanword. Paired with the QUECHUA_EXTRAS entry in the semantic
@@ -219,6 +219,13 @@ export const russianDictionary: Dictionary = {
219
219
  },
220
220
 
221
221
  expressions: {
222
+ back: 'назад',
223
+ elsewhere: 'снаружи',
224
+ index: 'индекс',
225
+ start: 'начать',
226
+ catch: 'поймать',
227
+ finally: 'наконец',
228
+ def: 'функция',
222
229
  characters: 'символы',
223
230
  inclusive: 'включительно',
224
231
  exclusive: 'исключительно',
@@ -164,6 +164,7 @@ export const sw: Dictionary = {
164
164
  },
165
165
 
166
166
  temporal: {
167
+ forever: 'milele',
167
168
  seconds: 'sekunde',
168
169
  second: 'sekunde',
169
170
  milliseconds: 'millisekunde',
@@ -215,6 +216,13 @@ export const sw: Dictionary = {
215
216
  },
216
217
 
217
218
  expressions: {
219
+ back: 'kurudi',
220
+ elsewhere: 'kwingineko',
221
+ index: 'faharasa',
222
+ start: 'zindua',
223
+ catch: 'shika',
224
+ finally: 'mwishowe',
225
+ def: 'kitendakazi',
218
226
  characters: 'herufi',
219
227
  first: 'kwanza',
220
228
  // 'mwisho' is the END keyword (block terminator) — the tokenizer's keyword
@@ -142,6 +142,9 @@ export const thaiDictionary: Dictionary = {
142
142
  },
143
143
 
144
144
  values: {
145
+ document: 'เอกสาร',
146
+ window: 'หน้าต่าง',
147
+ element: 'องค์ประกอบ',
145
148
  me: 'ฉัน',
146
149
  my: 'ของฉัน',
147
150
  it: 'มัน',
@@ -166,6 +169,12 @@ export const thaiDictionary: Dictionary = {
166
169
  },
167
170
 
168
171
  expressions: {
172
+ back: 'ย้อน',
173
+ elsewhere: 'ภายนอก',
174
+ start: 'เริ่ม',
175
+ catch: 'จับ',
176
+ finally: 'ท้ายที่สุด',
177
+ def: 'ฟังก์ชัน',
169
178
  characters: 'อักขระ',
170
179
  inclusive: 'รวม',
171
180
  exclusive: 'ยกเว้น',
@@ -220,6 +220,12 @@ export const tagalogDictionary: Dictionary = {
220
220
  },
221
221
 
222
222
  expressions: {
223
+ back: 'pabalik',
224
+ elsewhere: 'labas',
225
+ start: 'umpisahan',
226
+ catch: 'saluhin',
227
+ finally: 'panghuli',
228
+ def: 'punsiyon',
223
229
  characters: 'karakter',
224
230
  inclusive: 'kasama',
225
231
  exclusive: 'bukod',
@@ -150,6 +150,7 @@ export const tr: Dictionary = {
150
150
  },
151
151
 
152
152
  temporal: {
153
+ forever: 'sürekli',
153
154
  seconds: 'saniye',
154
155
  second: 'saniye',
155
156
  milliseconds: 'milisaniye',
@@ -201,6 +202,13 @@ export const tr: Dictionary = {
201
202
  },
202
203
 
203
204
  expressions: {
205
+ back: 'geri',
206
+ elsewhere: 'dışarı',
207
+ index: 'indeks',
208
+ start: 'başla',
209
+ catch: 'yakalarsa',
210
+ finally: 'sonunda',
211
+ def: 'fonksiyon',
204
212
  characters: 'karakterler',
205
213
  inclusive: 'dahil',
206
214
  exclusive: 'hariç',
@@ -218,6 +218,13 @@ export const ukrainianDictionary: Dictionary = {
218
218
  },
219
219
 
220
220
  expressions: {
221
+ back: 'назад',
222
+ elsewhere: 'ззовні',
223
+ index: 'індекс',
224
+ start: 'почати',
225
+ catch: 'зловити',
226
+ finally: 'нарешті',
227
+ def: 'функція',
221
228
  characters: 'символи',
222
229
  inclusive: 'включно',
223
230
  exclusive: 'виключно',
@@ -150,6 +150,9 @@ export const vi: Dictionary = {
150
150
  },
151
151
 
152
152
  values: {
153
+ document: 'tài liệu',
154
+ window: 'cửa sổ',
155
+ element: 'phần tử',
153
156
  true: 'đúng',
154
157
  false: 'sai',
155
158
  null: 'rỗng',
@@ -188,6 +191,13 @@ export const vi: Dictionary = {
188
191
  },
189
192
 
190
193
  expressions: {
194
+ back: 'lùi',
195
+ elsewhere: 'ngoài',
196
+ index: 'chỉ số',
197
+ start: 'bắt đầu',
198
+ catch: 'bắt',
199
+ finally: 'rốt cuộc',
200
+ def: 'hàm',
191
201
  random: 'ngẫu nhiên',
192
202
  characters: 'ký tự',
193
203
  inclusive: 'bao gồm',
@@ -155,6 +155,7 @@ export const zh: Dictionary = {
155
155
  },
156
156
 
157
157
  temporal: {
158
+ forever: '永远',
158
159
  seconds: '秒',
159
160
  second: '秒',
160
161
  milliseconds: '毫秒',
@@ -206,6 +207,13 @@ export const zh: Dictionary = {
206
207
  },
207
208
 
208
209
  expressions: {
210
+ back: '后退',
211
+ elsewhere: '外部',
212
+ index: '索引',
213
+ start: '开始',
214
+ catch: '捕获',
215
+ finally: '最终',
216
+ def: '函数',
209
217
  characters: '字符',
210
218
  inclusive: '包含',
211
219
  exclusive: '排除',