@lokascript/i18n 3.1.1 → 3.3.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/README.md +35 -45
- package/dist/browser.cjs +52 -29
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.js +52 -29
- package/dist/browser.js.map +1 -1
- package/dist/dictionaries/index.cjs +52 -29
- package/dist/dictionaries/index.cjs.map +1 -1
- package/dist/dictionaries/index.js +52 -29
- package/dist/dictionaries/index.js.map +1 -1
- package/dist/index.cjs +52 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -34
- package/dist/index.d.ts +34 -34
- package/dist/index.js +52 -29
- 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 +35 -12
- package/dist/lokascript-i18n.mjs.map +1 -1
- package/dist/plugins/vite.cjs +52 -29
- package/dist/plugins/vite.cjs.map +1 -1
- package/dist/plugins/vite.js +52 -29
- package/dist/plugins/vite.js.map +1 -1
- package/dist/plugins/webpack.cjs +52 -29
- package/dist/plugins/webpack.cjs.map +1 -1
- package/dist/plugins/webpack.js +52 -29
- package/dist/plugins/webpack.js.map +1 -1
- package/package.json +10 -10
- package/src/dictionaries/ar.ts +2 -1
- package/src/dictionaries/de.ts +1 -0
- package/src/dictionaries/es.ts +1 -0
- package/src/dictionaries/fr.ts +1 -0
- package/src/dictionaries/he.ts +3 -1
- package/src/dictionaries/hi.ts +3 -2
- package/src/dictionaries/id.ts +2 -1
- package/src/dictionaries/it.ts +1 -0
- package/src/dictionaries/ja.ts +1 -0
- package/src/dictionaries/ko.ts +1 -0
- package/src/dictionaries/pl.ts +1 -0
- package/src/dictionaries/pt.ts +1 -0
- package/src/dictionaries/qu.ts +3 -2
- package/src/dictionaries/ru.ts +1 -0
- package/src/dictionaries/sw.ts +2 -1
- package/src/dictionaries/th.ts +1 -1
- package/src/dictionaries/tl.ts +3 -1
- package/src/dictionaries/tr.ts +5 -2
- package/src/dictionaries/uk.ts +1 -0
- package/src/dictionaries/zh.ts +1 -0
- 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.
|
|
3
|
+
"version": "3.3.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.
|
|
68
|
-
"@lokascript/semantic": "^3.
|
|
69
|
-
"esbuild": "^0.
|
|
70
|
-
"happy-dom": "^20.
|
|
71
|
-
"vite": "^8.1
|
|
67
|
+
"@hyperfixi/core": "^3.3.0",
|
|
68
|
+
"@lokascript/semantic": "^3.3.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.
|
|
78
|
-
"@vitest/coverage-v8": "^
|
|
79
|
-
"rollup": "^4.
|
|
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": "^
|
|
82
|
+
"vitest": "^5.0.2"
|
|
83
83
|
},
|
|
84
84
|
"files": [
|
|
85
85
|
"dist",
|
package/src/dictionaries/ar.ts
CHANGED
|
@@ -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: 'له',
|
package/src/dictionaries/de.ts
CHANGED
package/src/dictionaries/es.ts
CHANGED
package/src/dictionaries/fr.ts
CHANGED
package/src/dictionaries/he.ts
CHANGED
package/src/dictionaries/hi.ts
CHANGED
|
@@ -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': 'से_शुरू',
|
package/src/dictionaries/id.ts
CHANGED
|
@@ -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: '
|
|
175
|
+
null: 'null',
|
|
175
176
|
undefined: 'tidak_terdefinisi',
|
|
176
177
|
it: 'itu',
|
|
177
178
|
its: 'miliknya',
|
package/src/dictionaries/it.ts
CHANGED
package/src/dictionaries/ja.ts
CHANGED
package/src/dictionaries/ko.ts
CHANGED
package/src/dictionaries/pl.ts
CHANGED
package/src/dictionaries/pt.ts
CHANGED
package/src/dictionaries/qu.ts
CHANGED
|
@@ -141,7 +141,7 @@ export const qu: Dictionary = {
|
|
|
141
141
|
logical: {
|
|
142
142
|
when: 'maykama',
|
|
143
143
|
where: 'maypi',
|
|
144
|
-
and: '
|
|
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: '
|
|
186
|
+
null: 'null',
|
|
186
187
|
undefined: 'mana_riqsisqa',
|
|
187
188
|
it: 'chay',
|
|
188
189
|
its: 'chaypaq',
|
package/src/dictionaries/ru.ts
CHANGED
package/src/dictionaries/sw.ts
CHANGED
|
@@ -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: '
|
|
185
|
+
null: 'null',
|
|
185
186
|
undefined: 'haijafafanuliwa',
|
|
186
187
|
it: 'hiyo',
|
|
187
188
|
its: 'yake',
|
package/src/dictionaries/th.ts
CHANGED
package/src/dictionaries/tl.ts
CHANGED
|
@@ -140,7 +140,9 @@ export const tagalogDictionary: Dictionary = {
|
|
|
140
140
|
exists: 'may',
|
|
141
141
|
matches: 'tumutugma',
|
|
142
142
|
contains: 'naglalaman',
|
|
143
|
-
includes:
|
|
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',
|
package/src/dictionaries/tr.ts
CHANGED
|
@@ -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:
|
|
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: '
|
|
171
|
+
null: 'null',
|
|
169
172
|
undefined: 'tanımsız',
|
|
170
173
|
it: 'o',
|
|
171
174
|
its: 'onun',
|
package/src/dictionaries/uk.ts
CHANGED
package/src/dictionaries/zh.ts
CHANGED
|
@@ -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('
|
|
130
|
+
expect(dictionaries.qu.logical.and).toBe('hinallataq');
|
|
131
131
|
expect(dictionaries.qu.events.click).toBe('ñitiy');
|
|
132
132
|
});
|
|
133
133
|
|