@lokascript/i18n 3.1.0 → 3.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.
Files changed (49) hide show
  1. package/README.md +35 -45
  2. package/dist/browser.cjs +52 -29
  3. package/dist/browser.cjs.map +1 -1
  4. package/dist/browser.js +52 -29
  5. package/dist/browser.js.map +1 -1
  6. package/dist/dictionaries/index.cjs +52 -29
  7. package/dist/dictionaries/index.cjs.map +1 -1
  8. package/dist/dictionaries/index.js +52 -29
  9. package/dist/dictionaries/index.js.map +1 -1
  10. package/dist/index.cjs +52 -29
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.d.cts +30 -30
  13. package/dist/index.d.ts +30 -30
  14. package/dist/index.js +52 -29
  15. package/dist/index.js.map +1 -1
  16. package/dist/lokascript-i18n.min.js +1 -1
  17. package/dist/lokascript-i18n.min.js.map +1 -1
  18. package/dist/lokascript-i18n.mjs +35 -12
  19. package/dist/lokascript-i18n.mjs.map +1 -1
  20. package/dist/plugins/vite.cjs +52 -29
  21. package/dist/plugins/vite.cjs.map +1 -1
  22. package/dist/plugins/vite.js +52 -29
  23. package/dist/plugins/vite.js.map +1 -1
  24. package/dist/plugins/webpack.cjs +52 -29
  25. package/dist/plugins/webpack.cjs.map +1 -1
  26. package/dist/plugins/webpack.js +52 -29
  27. package/dist/plugins/webpack.js.map +1 -1
  28. package/package.json +10 -10
  29. package/src/dictionaries/ar.ts +2 -1
  30. package/src/dictionaries/de.ts +1 -0
  31. package/src/dictionaries/es.ts +1 -0
  32. package/src/dictionaries/fr.ts +1 -0
  33. package/src/dictionaries/he.ts +3 -1
  34. package/src/dictionaries/hi.ts +3 -2
  35. package/src/dictionaries/id.ts +2 -1
  36. package/src/dictionaries/it.ts +1 -0
  37. package/src/dictionaries/ja.ts +1 -0
  38. package/src/dictionaries/ko.ts +1 -0
  39. package/src/dictionaries/pl.ts +1 -0
  40. package/src/dictionaries/pt.ts +1 -0
  41. package/src/dictionaries/qu.ts +3 -2
  42. package/src/dictionaries/ru.ts +1 -0
  43. package/src/dictionaries/sw.ts +2 -1
  44. package/src/dictionaries/th.ts +1 -1
  45. package/src/dictionaries/tl.ts +3 -1
  46. package/src/dictionaries/tr.ts +5 -2
  47. package/src/dictionaries/uk.ts +1 -0
  48. package/src/dictionaries/zh.ts +1 -0
  49. package/src/new-languages.test.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokascript/i18n",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "Keyword dictionaries, keyword providers and grammar profiles for hyperscript",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -64,22 +64,22 @@
64
64
  },
65
65
  "homepage": "https://github.com/codetalcott/hyperfixi/tree/main/packages/i18n#readme",
66
66
  "dependencies": {
67
- "@hyperfixi/core": "^3.1.0",
68
- "@lokascript/semantic": "^3.1.0",
69
- "esbuild": "^0.28.0",
70
- "happy-dom": "^20.10.6",
71
- "vite": "^8.1.4"
67
+ "@hyperfixi/core": "^3.2.0",
68
+ "@lokascript/semantic": "^3.2.0",
69
+ "esbuild": "^0.25.12",
70
+ "happy-dom": "^20.14.5",
71
+ "vite": "^8.3.1"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@rollup/plugin-node-resolve": "^16.0.1",
75
75
  "@rollup/plugin-terser": "^1.0.0",
76
76
  "@rollup/plugin-typescript": "^12.1.2",
77
- "@types/node": "^26.1.2",
78
- "@vitest/coverage-v8": "^4.0.0",
79
- "rollup": "^4.62.2",
77
+ "@types/node": "^26.6.3",
78
+ "@vitest/coverage-v8": "^5.0.0",
79
+ "rollup": "^4.63.5",
80
80
  "tsup": "^8.0.0",
81
81
  "typescript": "^5.0.0",
82
- "vitest": "^4.1.5"
82
+ "vitest": "^5.0.2"
83
83
  },
84
84
  "files": [
85
85
  "dist",
@@ -154,12 +154,13 @@ export const ar: Dictionary = {
154
154
  s: 'ث',
155
155
  min: 'د',
156
156
  h: 'س',
157
+ times: 'مرات',
157
158
  },
158
159
 
159
160
  values: {
160
161
  true: 'صحيح',
161
162
  false: 'خطأ',
162
- null: 'فارغ',
163
+ null: 'null',
163
164
  undefined: 'غير معرف',
164
165
  it: 'هو',
165
166
  its: 'له',
@@ -167,6 +167,7 @@ export const de: Dictionary = {
167
167
  s: 's',
168
168
  min: 'min',
169
169
  h: 'std',
170
+ times: 'mal',
170
171
  },
171
172
 
172
173
  values: {
@@ -149,6 +149,7 @@ export const es: Dictionary = {
149
149
  s: 's',
150
150
  min: 'min',
151
151
  h: 'h',
152
+ times: 'veces',
152
153
  },
153
154
 
154
155
  values: {
@@ -157,6 +157,7 @@ export const fr: Dictionary = {
157
157
  s: 's',
158
158
  min: 'min',
159
159
  h: 'h',
160
+ times: 'fois',
160
161
  },
161
162
 
162
163
  values: {
@@ -86,7 +86,9 @@ export const he: Dictionary = {
86
86
  where: 'איפה',
87
87
  },
88
88
 
89
- temporal: {},
89
+ temporal: {
90
+ times: 'פעמים',
91
+ },
90
92
 
91
93
  values: {
92
94
  body: 'גוף',
@@ -166,12 +166,13 @@ export const hindiDictionary: Dictionary = {
166
166
  once: 'एक_बार',
167
167
  every: 'हर',
168
168
  until: 'तक',
169
+ times: 'बार',
169
170
  },
170
171
 
171
172
  values: {
172
173
  true: 'सच',
173
174
  false: 'झूठ',
174
- null: 'खाली',
175
+ null: 'null',
175
176
  undefined: 'अपरिभाषित',
176
177
  it: 'यह',
177
178
  its: 'इसका',
@@ -230,7 +231,7 @@ export const hindiDictionary: Dictionary = {
230
231
  parent: 'मूल',
231
232
  children: 'बच्चे',
232
233
  within: 'के_अंदर',
233
- no: 'नहीं',
234
+ no: 'कोई नहीं',
234
235
  empty: 'खाली',
235
236
  some: 'कुछ',
236
237
  'starts with': 'से_शुरू',
@@ -166,12 +166,13 @@ export const id: Dictionary = {
166
166
  s: 'd',
167
167
  min: 'mnt',
168
168
  h: 'j',
169
+ times: 'kali',
169
170
  },
170
171
 
171
172
  values: {
172
173
  true: 'benar',
173
174
  false: 'salah',
174
- null: 'kosong',
175
+ null: 'null',
175
176
  undefined: 'tidak_terdefinisi',
176
177
  it: 'itu',
177
178
  its: 'miliknya',
@@ -154,6 +154,7 @@ export const it: Dictionary = {
154
154
  s: 's',
155
155
  min: 'min',
156
156
  h: 'h',
157
+ times: 'volte',
157
158
  },
158
159
 
159
160
  values: {
@@ -158,6 +158,7 @@ export const ja: Dictionary = {
158
158
  s: '秒',
159
159
  min: '分',
160
160
  h: '時',
161
+ times: '回',
161
162
  },
162
163
 
163
164
  values: {
@@ -154,6 +154,7 @@ export const ko: Dictionary = {
154
154
  s: '초',
155
155
  min: '분',
156
156
  h: '시',
157
+ times: '번',
157
158
  },
158
159
 
159
160
  values: {
@@ -160,6 +160,7 @@ export const pl: Dictionary = {
160
160
  s: 's',
161
161
  min: 'min',
162
162
  h: 'godz',
163
+ times: 'razy',
163
164
  },
164
165
 
165
166
  values: {
@@ -158,6 +158,7 @@ export const pt: Dictionary = {
158
158
  s: 's',
159
159
  min: 'min',
160
160
  h: 'h',
161
+ times: 'vezes',
161
162
  },
162
163
 
163
164
  values: {
@@ -141,7 +141,7 @@ export const qu: Dictionary = {
141
141
  logical: {
142
142
  when: 'maykama',
143
143
  where: 'maypi',
144
- and: 'chaymanta',
144
+ and: 'hinallataq',
145
145
  or: 'utaq',
146
146
  not: 'mana',
147
147
  is: 'kanqa',
@@ -177,12 +177,13 @@ export const qu: Dictionary = {
177
177
  s: 's',
178
178
  min: 'm',
179
179
  h: 'h',
180
+ times: 'kuti',
180
181
  },
181
182
 
182
183
  values: {
183
184
  true: 'cheqaq',
184
185
  false: 'llulla',
185
- null: 'chusaq',
186
+ null: 'null',
186
187
  undefined: 'mana_riqsisqa',
187
188
  it: 'chay',
188
189
  its: 'chaypaq',
@@ -166,6 +166,7 @@ export const russianDictionary: Dictionary = {
166
166
  once: 'однажды',
167
167
  every: 'каждый',
168
168
  until: 'до',
169
+ times: 'раз',
169
170
  },
170
171
 
171
172
  values: {
@@ -176,12 +176,13 @@ export const sw: Dictionary = {
176
176
  s: 's',
177
177
  min: 'dk',
178
178
  h: 'sa',
179
+ times: 'mara',
179
180
  },
180
181
 
181
182
  values: {
182
183
  true: 'kweli',
183
184
  false: 'uongo',
184
- null: 'tupu',
185
+ null: 'null',
185
186
  undefined: 'haijafafanuliwa',
186
187
  it: 'hiyo',
187
188
  its: 'yake',
@@ -121,7 +121,7 @@ export const thaiDictionary: Dictionary = {
121
121
  empty: 'ว่าง',
122
122
  true: 'จริง',
123
123
  false: 'เท็จ',
124
- null: 'ว่าง',
124
+ null: 'null',
125
125
  undefined: 'ไม่กำหนด',
126
126
  end: 'จบ',
127
127
  then: 'แล้ว',
@@ -140,7 +140,9 @@ export const tagalogDictionary: Dictionary = {
140
140
  exists: 'may',
141
141
  matches: 'tumutugma',
142
142
  contains: 'naglalaman',
143
- includes: 'kasama',
143
+ // `includes` takes `contains`' word: both engines read them as one operator,
144
+ // and `kasama` is `inclusive` (pick's range word), which the reader takes it for.
145
+ includes: 'naglalaman',
144
146
  equals: 'katumbas',
145
147
  has: 'may',
146
148
  have: 'may',
@@ -135,7 +135,9 @@ export const tr: Dictionary = {
135
135
  exists: 'var',
136
136
  matches: 'eşleşir',
137
137
  contains: 'içerir',
138
- includes: 'dahil',
138
+ // `includes` takes `contains`' word: both engines read them as one operator,
139
+ // and `dahil` is `inclusive` (pick's range word), which the reader takes it for.
140
+ includes: 'içerir',
139
141
  equals: 'eşittir',
140
142
  has: 'var',
141
143
  have: 'var',
@@ -160,12 +162,13 @@ export const tr: Dictionary = {
160
162
  s: 's',
161
163
  min: 'dk',
162
164
  h: 'sa',
165
+ times: 'kez',
163
166
  },
164
167
 
165
168
  values: {
166
169
  true: 'doğru',
167
170
  false: 'yanlış',
168
- null: 'boş',
171
+ null: 'null',
169
172
  undefined: 'tanımsız',
170
173
  it: 'o',
171
174
  its: 'onun',
@@ -165,6 +165,7 @@ export const ukrainianDictionary: Dictionary = {
165
165
  once: 'один_раз',
166
166
  every: 'кожний',
167
167
  until: 'до',
168
+ times: 'разів',
168
169
  },
169
170
 
170
171
  values: {
@@ -167,6 +167,7 @@ export const zh: Dictionary = {
167
167
  s: '秒',
168
168
  min: '分',
169
169
  h: '时',
170
+ times: '次',
170
171
  },
171
172
 
172
173
  values: {
@@ -127,7 +127,7 @@ describe('New Language Support', () => {
127
127
  expect(dictionaries.qu.commands.on).toBe('kaqpi');
128
128
  expect(dictionaries.qu.commands.add).toBe('yapay');
129
129
  expect(dictionaries.qu.commands.if).toBe('sichus');
130
- expect(dictionaries.qu.logical.and).toBe('chaymanta');
130
+ expect(dictionaries.qu.logical.and).toBe('hinallataq');
131
131
  expect(dictionaries.qu.events.click).toBe('ñitiy');
132
132
  });
133
133