i18ntk 2.0.4 → 2.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.
- package/README.md +38 -60
- package/main/i18ntk-analyze.js +49 -44
- package/main/i18ntk-complete.js +75 -74
- package/main/i18ntk-fixer.js +3 -3
- package/main/i18ntk-init.js +5 -5
- package/main/i18ntk-scanner.js +2 -2
- package/main/i18ntk-sizing.js +35 -35
- package/main/i18ntk-summary.js +4 -4
- package/main/i18ntk-ui.js +54 -8
- package/main/i18ntk-usage.js +14 -14
- package/main/i18ntk-validate.js +6 -5
- package/main/manage/commands/AnalyzeCommand.js +40 -35
- package/main/manage/commands/FixerCommand.js +2 -2
- package/main/manage/commands/ScannerCommand.js +2 -2
- package/main/manage/commands/ValidateCommand.js +9 -9
- package/main/manage/index.js +147 -75
- package/main/manage/managers/LanguageMenu.js +7 -2
- package/main/manage/services/UsageService.js +7 -7
- package/package.json +269 -290
- package/settings/settings-cli.js +3 -3
- package/ui-locales/de.json +161 -166
- package/ui-locales/en.json +13 -18
- package/ui-locales/es.json +171 -184
- package/ui-locales/fr.json +155 -161
- package/ui-locales/ja.json +192 -243
- package/ui-locales/ru.json +145 -196
- package/ui-locales/zh.json +179 -185
- package/utils/cli-helper.js +26 -98
- package/utils/extractors/regex.js +39 -12
- package/utils/i18n-helper.js +88 -40
- package/{scripts → utils}/locale-optimizer.js +61 -60
- package/utils/security-check-improved.js +16 -13
- package/utils/security.js +6 -4
- package/main/i18ntk-go.js +0 -283
- package/main/i18ntk-java.js +0 -380
- package/main/i18ntk-js.js +0 -512
- package/main/i18ntk-manage.js +0 -1694
- package/main/i18ntk-php.js +0 -462
- package/main/i18ntk-py.js +0 -379
- package/main/i18ntk-settings.js +0 -23
- package/main/manage/index-fixed.js +0 -1447
- package/main/manage/services/ConfigurationService-fixed.js +0 -449
- package/scripts/build-lite.js +0 -279
- package/scripts/deprecate-versions.js +0 -317
- package/scripts/export-translations.js +0 -84
- package/scripts/fix-all-i18n.js +0 -215
- package/scripts/fix-and-purify-i18n.js +0 -213
- package/scripts/fix-locale-control-chars.js +0 -110
- package/scripts/lint-locales.js +0 -80
- package/scripts/prepublish.js +0 -348
- package/scripts/security-check.js +0 -117
- package/scripts/sync-translations.js +0 -151
- package/scripts/sync-ui-locales.js +0 -20
- package/scripts/validate-all-translations.js +0 -139
- package/scripts/verify-deprecations.js +0 -157
- package/scripts/verify-translations.js +0 -63
- package/utils/security-fixed.js +0 -607
package/package.json
CHANGED
|
@@ -1,290 +1,269 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "i18ntk",
|
|
3
|
-
"version": "2.0
|
|
4
|
-
"description": "🚀 The fastest i18n toolkit with 97% performance boost! Zero-dependency, enterprise-grade internationalization for React, Vue, Angular, Python, Java, PHP & more. Features PIN protection, auto framework detection, 7+ UI languages, and comprehensive translation management. Perfect for startups to enterprises.",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"i18n",
|
|
7
|
-
"internationalization",
|
|
8
|
-
"localization",
|
|
9
|
-
"translation",
|
|
10
|
-
"l10n",
|
|
11
|
-
"multilingual",
|
|
12
|
-
"globalization",
|
|
13
|
-
"i18next",
|
|
14
|
-
"react-i18next",
|
|
15
|
-
"vue-i18n",
|
|
16
|
-
"angular-i18n",
|
|
17
|
-
"next-i18next",
|
|
18
|
-
"nuxt-i18n",
|
|
19
|
-
"svelte-i18n",
|
|
20
|
-
"django",
|
|
21
|
-
"flask",
|
|
22
|
-
"fastapi",
|
|
23
|
-
"laravel",
|
|
24
|
-
"spring-boot",
|
|
25
|
-
"nodejs",
|
|
26
|
-
"javascript",
|
|
27
|
-
"typescript",
|
|
28
|
-
"cli",
|
|
29
|
-
"command-line",
|
|
30
|
-
"automation",
|
|
31
|
-
"developer-tools",
|
|
32
|
-
"productivity",
|
|
33
|
-
"translation-management",
|
|
34
|
-
"language-support",
|
|
35
|
-
"framework-detection",
|
|
36
|
-
"zero-dependency",
|
|
37
|
-
"lightweight",
|
|
38
|
-
"fast",
|
|
39
|
-
"performance",
|
|
40
|
-
"security",
|
|
41
|
-
"enterprise",
|
|
42
|
-
"devops",
|
|
43
|
-
"ci-cd",
|
|
44
|
-
"json",
|
|
45
|
-
"yaml",
|
|
46
|
-
"csv",
|
|
47
|
-
"po",
|
|
48
|
-
"xliff",
|
|
49
|
-
"android",
|
|
50
|
-
"ios",
|
|
51
|
-
"react-native",
|
|
52
|
-
"flutter",
|
|
53
|
-
"expo",
|
|
54
|
-
"electron",
|
|
55
|
-
"desktop",
|
|
56
|
-
"mobile",
|
|
57
|
-
"web",
|
|
58
|
-
"full-stack",
|
|
59
|
-
"backend",
|
|
60
|
-
"frontend",
|
|
61
|
-
"api",
|
|
62
|
-
"microservices",
|
|
63
|
-
"serverless",
|
|
64
|
-
"docker",
|
|
65
|
-
"kubernetes",
|
|
66
|
-
"cloud",
|
|
67
|
-
"aws",
|
|
68
|
-
"azure",
|
|
69
|
-
"gcp",
|
|
70
|
-
"saas",
|
|
71
|
-
"paas",
|
|
72
|
-
"open-source",
|
|
73
|
-
"free",
|
|
74
|
-
"npm",
|
|
75
|
-
"package",
|
|
76
|
-
"tool",
|
|
77
|
-
"utility",
|
|
78
|
-
"workflow",
|
|
79
|
-
"efficiency",
|
|
80
|
-
"best-practices",
|
|
81
|
-
"standards",
|
|
82
|
-
"compliance",
|
|
83
|
-
"accessibility",
|
|
84
|
-
"a11y",
|
|
85
|
-
"seo",
|
|
86
|
-
"marketing",
|
|
87
|
-
"growth",
|
|
88
|
-
"scale",
|
|
89
|
-
"startup",
|
|
90
|
-
"business",
|
|
91
|
-
"professional",
|
|
92
|
-
"expert",
|
|
93
|
-
"advanced",
|
|
94
|
-
"comprehensive",
|
|
95
|
-
"complete",
|
|
96
|
-
"all-in-one",
|
|
97
|
-
"suite",
|
|
98
|
-
"platform",
|
|
99
|
-
"solution"
|
|
100
|
-
],
|
|
101
|
-
"homepage": "https://github.com/vladnoskv/i18ntk#readme",
|
|
102
|
-
"bugs": {
|
|
103
|
-
"url": "https://github.com/vladnoskv/i18ntk/issues"
|
|
104
|
-
},
|
|
105
|
-
"repository": {
|
|
106
|
-
"type": "git",
|
|
107
|
-
"url": "git+https://github.com/vladnoskv/i18ntk.git"
|
|
108
|
-
},
|
|
109
|
-
"funding": {
|
|
110
|
-
"type": "github",
|
|
111
|
-
"url": "https://github.com/sponsors/vladnoskv"
|
|
112
|
-
},
|
|
113
|
-
"license": "MIT",
|
|
114
|
-
"author": {
|
|
115
|
-
"name": "Vladimir Noskov",
|
|
116
|
-
"url": "https://github.com/vladnoskv"
|
|
117
|
-
},
|
|
118
|
-
"type": "commonjs",
|
|
119
|
-
"main": "main/manage/index.js",
|
|
120
|
-
"types": "runtime/i18ntk.d.ts",
|
|
121
|
-
"exports": {
|
|
122
|
-
".": "./main/manage/index.js",
|
|
123
|
-
"./runtime": {
|
|
124
|
-
"types": "./runtime/i18ntk.d.ts",
|
|
125
|
-
"require": "./runtime/index.js",
|
|
126
|
-
"default": "./runtime/index.js"
|
|
127
|
-
},
|
|
128
|
-
"./runtime/enhanced": {
|
|
129
|
-
"types": "./runtime/enhanced.d.ts",
|
|
130
|
-
"require": "./runtime/enhanced.js",
|
|
131
|
-
"default": "./runtime/enhanced.js"
|
|
132
|
-
},
|
|
133
|
-
"./runtime/*": "./runtime/*",
|
|
134
|
-
"./main/*": "./main/*",
|
|
135
|
-
"./utils/*": "./utils/*",
|
|
136
|
-
"./settings/*": "./settings/*",
|
|
137
|
-
"./
|
|
138
|
-
"./
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
"i18ntk": "main/
|
|
143
|
-
"i18ntk-
|
|
144
|
-
"i18ntk-
|
|
145
|
-
"i18ntk-
|
|
146
|
-
"i18ntk-
|
|
147
|
-
"i18ntk-
|
|
148
|
-
"i18ntk-
|
|
149
|
-
"i18ntk-
|
|
150
|
-
"i18ntk-
|
|
151
|
-
"i18ntk-
|
|
152
|
-
"i18ntk-
|
|
153
|
-
"i18ntk-
|
|
154
|
-
"i18ntk-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
"
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
"
|
|
177
|
-
"
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
"i18ntk
|
|
182
|
-
"i18ntk-
|
|
183
|
-
"i18ntk-
|
|
184
|
-
"i18ntk-
|
|
185
|
-
"i18ntk-
|
|
186
|
-
"i18ntk-
|
|
187
|
-
"i18ntk-
|
|
188
|
-
"i18ntk-
|
|
189
|
-
"i18ntk-
|
|
190
|
-
"i18ntk-
|
|
191
|
-
"i18ntk-
|
|
192
|
-
"i18ntk-
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
"
|
|
197
|
-
"
|
|
198
|
-
"
|
|
199
|
-
"
|
|
200
|
-
"
|
|
201
|
-
"
|
|
202
|
-
"
|
|
203
|
-
"
|
|
204
|
-
"
|
|
205
|
-
"
|
|
206
|
-
"
|
|
207
|
-
"
|
|
208
|
-
"
|
|
209
|
-
"
|
|
210
|
-
"
|
|
211
|
-
"
|
|
212
|
-
"
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
"
|
|
216
|
-
"
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
"
|
|
220
|
-
},
|
|
221
|
-
"
|
|
222
|
-
|
|
223
|
-
"
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
"
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
"
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
"
|
|
241
|
-
"
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
"
|
|
248
|
-
"
|
|
249
|
-
"
|
|
250
|
-
"
|
|
251
|
-
"
|
|
252
|
-
"
|
|
253
|
-
"
|
|
254
|
-
"
|
|
255
|
-
"
|
|
256
|
-
"
|
|
257
|
-
"
|
|
258
|
-
"
|
|
259
|
-
"
|
|
260
|
-
"
|
|
261
|
-
"
|
|
262
|
-
"
|
|
263
|
-
"
|
|
264
|
-
"
|
|
265
|
-
|
|
266
|
-
"
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
"vue-i18n": ">=9.0.0",
|
|
271
|
-
"angular-i18n": ">=12.0.0",
|
|
272
|
-
"next-i18next": ">=13.0.0",
|
|
273
|
-
"nuxt-i18n": ">=8.0.0",
|
|
274
|
-
"svelte-i18n": ">=3.0.0",
|
|
275
|
-
"sveltekit-i18n": ">=2.0.0",
|
|
276
|
-
"react-native-localize": ">=2.0.0",
|
|
277
|
-
"expo-localization": ">=14.0.0",
|
|
278
|
-
"ionic-angular": ">=6.0.0",
|
|
279
|
-
"ember-intl": ">=5.0.0",
|
|
280
|
-
"formatjs": ">=2.0.0",
|
|
281
|
-
"i18next": ">=21.0.0",
|
|
282
|
-
"django": ">=3.0.0",
|
|
283
|
-
"flask-babel": ">=2.0.0",
|
|
284
|
-
"fastapi": ">=0.70.0",
|
|
285
|
-
"spring-boot": ">=2.5.0",
|
|
286
|
-
"laravel": ">=8.0.0"
|
|
287
|
-
}
|
|
288
|
-
},
|
|
289
|
-
"_comment": "This package is zero-dependency and uses only native Node.js modules"
|
|
290
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "i18ntk",
|
|
3
|
+
"version": "2.2.0",
|
|
4
|
+
"description": "🚀 The fastest i18n toolkit with 97% performance boost! Zero-dependency, enterprise-grade internationalization for React, Vue, Angular, Python, Java, PHP & more. Features PIN protection, auto framework detection, 7+ UI languages, and comprehensive translation management. Perfect for startups to enterprises.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"i18n",
|
|
7
|
+
"internationalization",
|
|
8
|
+
"localization",
|
|
9
|
+
"translation",
|
|
10
|
+
"l10n",
|
|
11
|
+
"multilingual",
|
|
12
|
+
"globalization",
|
|
13
|
+
"i18next",
|
|
14
|
+
"react-i18next",
|
|
15
|
+
"vue-i18n",
|
|
16
|
+
"angular-i18n",
|
|
17
|
+
"next-i18next",
|
|
18
|
+
"nuxt-i18n",
|
|
19
|
+
"svelte-i18n",
|
|
20
|
+
"django",
|
|
21
|
+
"flask",
|
|
22
|
+
"fastapi",
|
|
23
|
+
"laravel",
|
|
24
|
+
"spring-boot",
|
|
25
|
+
"nodejs",
|
|
26
|
+
"javascript",
|
|
27
|
+
"typescript",
|
|
28
|
+
"cli",
|
|
29
|
+
"command-line",
|
|
30
|
+
"automation",
|
|
31
|
+
"developer-tools",
|
|
32
|
+
"productivity",
|
|
33
|
+
"translation-management",
|
|
34
|
+
"language-support",
|
|
35
|
+
"framework-detection",
|
|
36
|
+
"zero-dependency",
|
|
37
|
+
"lightweight",
|
|
38
|
+
"fast",
|
|
39
|
+
"performance",
|
|
40
|
+
"security",
|
|
41
|
+
"enterprise",
|
|
42
|
+
"devops",
|
|
43
|
+
"ci-cd",
|
|
44
|
+
"json",
|
|
45
|
+
"yaml",
|
|
46
|
+
"csv",
|
|
47
|
+
"po",
|
|
48
|
+
"xliff",
|
|
49
|
+
"android",
|
|
50
|
+
"ios",
|
|
51
|
+
"react-native",
|
|
52
|
+
"flutter",
|
|
53
|
+
"expo",
|
|
54
|
+
"electron",
|
|
55
|
+
"desktop",
|
|
56
|
+
"mobile",
|
|
57
|
+
"web",
|
|
58
|
+
"full-stack",
|
|
59
|
+
"backend",
|
|
60
|
+
"frontend",
|
|
61
|
+
"api",
|
|
62
|
+
"microservices",
|
|
63
|
+
"serverless",
|
|
64
|
+
"docker",
|
|
65
|
+
"kubernetes",
|
|
66
|
+
"cloud",
|
|
67
|
+
"aws",
|
|
68
|
+
"azure",
|
|
69
|
+
"gcp",
|
|
70
|
+
"saas",
|
|
71
|
+
"paas",
|
|
72
|
+
"open-source",
|
|
73
|
+
"free",
|
|
74
|
+
"npm",
|
|
75
|
+
"package",
|
|
76
|
+
"tool",
|
|
77
|
+
"utility",
|
|
78
|
+
"workflow",
|
|
79
|
+
"efficiency",
|
|
80
|
+
"best-practices",
|
|
81
|
+
"standards",
|
|
82
|
+
"compliance",
|
|
83
|
+
"accessibility",
|
|
84
|
+
"a11y",
|
|
85
|
+
"seo",
|
|
86
|
+
"marketing",
|
|
87
|
+
"growth",
|
|
88
|
+
"scale",
|
|
89
|
+
"startup",
|
|
90
|
+
"business",
|
|
91
|
+
"professional",
|
|
92
|
+
"expert",
|
|
93
|
+
"advanced",
|
|
94
|
+
"comprehensive",
|
|
95
|
+
"complete",
|
|
96
|
+
"all-in-one",
|
|
97
|
+
"suite",
|
|
98
|
+
"platform",
|
|
99
|
+
"solution"
|
|
100
|
+
],
|
|
101
|
+
"homepage": "https://github.com/vladnoskv/i18ntk#readme",
|
|
102
|
+
"bugs": {
|
|
103
|
+
"url": "https://github.com/vladnoskv/i18ntk/issues"
|
|
104
|
+
},
|
|
105
|
+
"repository": {
|
|
106
|
+
"type": "git",
|
|
107
|
+
"url": "git+https://github.com/vladnoskv/i18ntk.git"
|
|
108
|
+
},
|
|
109
|
+
"funding": {
|
|
110
|
+
"type": "github",
|
|
111
|
+
"url": "https://github.com/sponsors/vladnoskv"
|
|
112
|
+
},
|
|
113
|
+
"license": "MIT",
|
|
114
|
+
"author": {
|
|
115
|
+
"name": "Vladimir Noskov",
|
|
116
|
+
"url": "https://github.com/vladnoskv"
|
|
117
|
+
},
|
|
118
|
+
"type": "commonjs",
|
|
119
|
+
"main": "main/manage/index.js",
|
|
120
|
+
"types": "runtime/i18ntk.d.ts",
|
|
121
|
+
"exports": {
|
|
122
|
+
".": "./main/manage/index.js",
|
|
123
|
+
"./runtime": {
|
|
124
|
+
"types": "./runtime/i18ntk.d.ts",
|
|
125
|
+
"require": "./runtime/index.js",
|
|
126
|
+
"default": "./runtime/index.js"
|
|
127
|
+
},
|
|
128
|
+
"./runtime/enhanced": {
|
|
129
|
+
"types": "./runtime/enhanced.d.ts",
|
|
130
|
+
"require": "./runtime/enhanced.js",
|
|
131
|
+
"default": "./runtime/enhanced.js"
|
|
132
|
+
},
|
|
133
|
+
"./runtime/*": "./runtime/*",
|
|
134
|
+
"./main/*": "./main/*",
|
|
135
|
+
"./utils/*": "./utils/*",
|
|
136
|
+
"./settings/*": "./settings/*",
|
|
137
|
+
"./ui-locales/*": "./ui-locales/*",
|
|
138
|
+
"./package.json": "./package.json"
|
|
139
|
+
},
|
|
140
|
+
"bin": {
|
|
141
|
+
"i18ntk": "main/manage/index.js",
|
|
142
|
+
"i18ntk-setup": "main/i18ntk-setup.js",
|
|
143
|
+
"i18ntk-manage": "main/manage/index.js",
|
|
144
|
+
"i18ntk-init": "main/i18ntk-init.js",
|
|
145
|
+
"i18ntk-analyze": "main/i18ntk-analyze.js",
|
|
146
|
+
"i18ntk-validate": "main/i18ntk-validate.js",
|
|
147
|
+
"i18ntk-usage": "main/i18ntk-usage.js",
|
|
148
|
+
"i18ntk-complete": "main/i18ntk-complete.js",
|
|
149
|
+
"i18ntk-sizing": "main/i18ntk-sizing.js",
|
|
150
|
+
"i18ntk-summary": "main/i18ntk-summary.js",
|
|
151
|
+
"i18ntk-doctor": "main/i18ntk-doctor.js",
|
|
152
|
+
"i18ntk-fixer": "main/i18ntk-fixer.js",
|
|
153
|
+
"i18ntk-scanner": "main/i18ntk-scanner.js",
|
|
154
|
+
"i18ntk-backup": "main/i18ntk-backup.js"
|
|
155
|
+
},
|
|
156
|
+
"directories": {
|
|
157
|
+
"doc": "docs",
|
|
158
|
+
"test": "tests"
|
|
159
|
+
},
|
|
160
|
+
"files": [
|
|
161
|
+
"main/",
|
|
162
|
+
"runtime/",
|
|
163
|
+
"utils/",
|
|
164
|
+
"settings/",
|
|
165
|
+
"ui-locales/",
|
|
166
|
+
"!main/manage/index-fixed.js",
|
|
167
|
+
"!main/i18ntk-manage.js",
|
|
168
|
+
"!main/i18ntk-py.js",
|
|
169
|
+
"!main/i18ntk-js.js",
|
|
170
|
+
"!main/i18ntk-java.js",
|
|
171
|
+
"!main/i18ntk-php.js",
|
|
172
|
+
"!main/i18ntk-go.js",
|
|
173
|
+
"!main/i18ntk-settings.js",
|
|
174
|
+
"!utils/security-fixed.js",
|
|
175
|
+
"LICENSE",
|
|
176
|
+
"package.json",
|
|
177
|
+
"README.md"
|
|
178
|
+
],
|
|
179
|
+
"sideEffects": false,
|
|
180
|
+
"scripts": {
|
|
181
|
+
"i18ntk": "node main/manage/index.js",
|
|
182
|
+
"i18ntk-setup": "node main/i18ntk-setup.js",
|
|
183
|
+
"i18ntk-manage": "node main/manage/index.js",
|
|
184
|
+
"i18ntk-init": "node main/i18ntk-init.js",
|
|
185
|
+
"i18ntk-analyze": "node main/i18ntk-analyze.js",
|
|
186
|
+
"i18ntk-validate": "node main/i18ntk-validate.js",
|
|
187
|
+
"i18ntk-usage": "node main/i18ntk-usage.js",
|
|
188
|
+
"i18ntk-complete": "node main/i18ntk-complete.js",
|
|
189
|
+
"i18ntk-sizing": "node main/i18ntk-sizing.js",
|
|
190
|
+
"i18ntk-summary": "node main/i18ntk-summary.js",
|
|
191
|
+
"i18ntk-doctor": "node main/i18ntk-doctor.js",
|
|
192
|
+
"i18ntk-fixer": "node main/i18ntk-fixer.js",
|
|
193
|
+
"i18ntk-scanner": "node main/i18ntk-scanner.js",
|
|
194
|
+
"i18ntk-backup": "node main/i18ntk-backup.js",
|
|
195
|
+
"i18ntk-py": "node main/i18ntk-py.js",
|
|
196
|
+
"i18ntk-js": "node main/i18ntk-js.js",
|
|
197
|
+
"i18ntk-java": "node main/i18ntk-java.js",
|
|
198
|
+
"i18ntk-php": "node main/i18ntk-php.js",
|
|
199
|
+
"i18ntk-go": "node main/i18ntk-go.js",
|
|
200
|
+
"start": "node main/manage/index.js",
|
|
201
|
+
"security:check": "node utils/security-check-improved.js",
|
|
202
|
+
"security:test": "node --test tests/security.test.js",
|
|
203
|
+
"security:audit": "npm run security:check && npm run security:test",
|
|
204
|
+
"test": "npm run security:test",
|
|
205
|
+
"test:all": "npm run security:audit",
|
|
206
|
+
"prepublishOnly": "npm run security:audit",
|
|
207
|
+
"prepare": "npm run security:check",
|
|
208
|
+
"backup:create": "node main/i18ntk-backup.js create",
|
|
209
|
+
"backup:restore": "node main/i18ntk-backup.js restore",
|
|
210
|
+
"backup:list": "node main/i18ntk-backup.js list",
|
|
211
|
+
"backup:verify": "node main/i18ntk-backup.js verify",
|
|
212
|
+
"backup:cleanup": "node main/i18ntk-backup.js cleanup",
|
|
213
|
+
"languages:select": "node settings/settings-cli.js",
|
|
214
|
+
"languages:list": "node settings/settings-cli.js --list-languages",
|
|
215
|
+
"languages:status": "node settings/settings-cli.js --language-status",
|
|
216
|
+
"lint:locales": "node scripts/lint-locales.js",
|
|
217
|
+
"deprecate:versions": "node scripts/deprecate-versions.js",
|
|
218
|
+
"deprecate:dry-run": "node scripts/deprecate-versions.js --dry-run",
|
|
219
|
+
"deprecate:verify": "node scripts/verify-deprecations.js"
|
|
220
|
+
},
|
|
221
|
+
"engines": {
|
|
222
|
+
"node": ">=16.0.0",
|
|
223
|
+
"npm": ">=8.0.0"
|
|
224
|
+
},
|
|
225
|
+
"publishConfig": {
|
|
226
|
+
"access": "public"
|
|
227
|
+
},
|
|
228
|
+
"preferGlobal": true,
|
|
229
|
+
"versionInfo": {
|
|
230
|
+
"version": "2.2.0",
|
|
231
|
+
"releaseDate": "12/04/2026",
|
|
232
|
+
"lastUpdated": "12/04/2026",
|
|
233
|
+
"maintainer": "Vladimir Noskov",
|
|
234
|
+
"changelog": "./CHANGELOG.md",
|
|
235
|
+
"documentation": "./README.md",
|
|
236
|
+
"apiReference": "./docs/api/API_REFERENCE.md",
|
|
237
|
+
"majorChanges": [
|
|
238
|
+
"CRITICAL FIX: Resolved sizing and usage-analysis regressions in v2 command flow.",
|
|
239
|
+
"PACKAGING: Reduced publish footprint by removing internal development scripts and legacy fixed-file artifacts.",
|
|
240
|
+
"SECURITY: Hardened release checks and added explicit support guidance to update from pre-2.2.0 versions.",
|
|
241
|
+
"I18N: Completed internal UI locale parity and actionable untranslated-key cleanup across supported languages."
|
|
242
|
+
],
|
|
243
|
+
"breakingChanges": [],
|
|
244
|
+
"nextVersion": "2.3.0",
|
|
245
|
+
"supportedNodeVersions": ">=16.0.0",
|
|
246
|
+
"supportedFrameworks": {
|
|
247
|
+
"react-i18next": ">=11.0.0",
|
|
248
|
+
"vue-i18n": ">=9.0.0",
|
|
249
|
+
"angular-i18n": ">=12.0.0",
|
|
250
|
+
"next-i18next": ">=13.0.0",
|
|
251
|
+
"nuxt-i18n": ">=8.0.0",
|
|
252
|
+
"svelte-i18n": ">=3.0.0",
|
|
253
|
+
"sveltekit-i18n": ">=2.0.0",
|
|
254
|
+
"react-native-localize": ">=2.0.0",
|
|
255
|
+
"expo-localization": ">=14.0.0",
|
|
256
|
+
"ionic-angular": ">=6.0.0",
|
|
257
|
+
"ember-intl": ">=5.0.0",
|
|
258
|
+
"formatjs": ">=2.0.0",
|
|
259
|
+
"i18next": ">=21.0.0",
|
|
260
|
+
"django": ">=3.0.0",
|
|
261
|
+
"flask-babel": ">=2.0.0",
|
|
262
|
+
"fastapi": ">=0.70.0",
|
|
263
|
+
"spring-boot": ">=2.5.0",
|
|
264
|
+
"laravel": ">=8.0.0"
|
|
265
|
+
},
|
|
266
|
+
"supportPolicy": "Versions earlier than 2.2.0 may be unstable or insecure. Upgrade to 2.2.0 or newer."
|
|
267
|
+
},
|
|
268
|
+
"_comment": "This package is zero-dependency and uses only native Node.js modules"
|
|
269
|
+
}
|
package/settings/settings-cli.js
CHANGED
|
@@ -12,7 +12,7 @@ const settingsManager = new SettingsManager();
|
|
|
12
12
|
const UIi18n = require('../main/i18ntk-ui');
|
|
13
13
|
const configManager = require('../utils/config-manager');
|
|
14
14
|
const { loadTranslations, t } = require('../utils/i18n-helper');
|
|
15
|
-
loadTranslations(null, path.resolve(__dirname, '..', '
|
|
15
|
+
loadTranslations(null, path.resolve(__dirname, '..', 'ui-locales'));
|
|
16
16
|
|
|
17
17
|
const AdminAuth = require('../utils/admin-auth');
|
|
18
18
|
const uiI18n = new UIi18n();
|
|
@@ -610,7 +610,7 @@ class SettingsCLI {
|
|
|
610
610
|
}
|
|
611
611
|
if (key === 'removeUiLanguages') {
|
|
612
612
|
if (this.rl && this.rl.pause) this.rl.pause();
|
|
613
|
-
const LocaleOptimizer = require('../
|
|
613
|
+
const LocaleOptimizer = require('../utils/locale-optimizer.js');
|
|
614
614
|
const optimizer = new LocaleOptimizer();
|
|
615
615
|
await optimizer.interactiveSelect();
|
|
616
616
|
// Re-initialize readline if it was closed by locale optimizer
|
|
@@ -2135,4 +2135,4 @@ Note: Use arrow keys and Enter to navigate the interactive menu.
|
|
|
2135
2135
|
console.error('Stack trace:', error.stack);
|
|
2136
2136
|
process.exit(1);
|
|
2137
2137
|
});
|
|
2138
|
-
}
|
|
2138
|
+
}
|