i18ntk 2.4.0 → 2.5.1
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/CODE_OF_CONDUCT.md +133 -0
- package/CONTRIBUTING.md +41 -0
- package/FUNDING.md +5 -0
- package/README.md +62 -15
- package/SECURITY.md +52 -0
- package/main/manage/commands/FixerCommand.js +97 -97
- package/main/manage/managers/DebugMenu.js +10 -9
- package/package.json +59 -184
- package/runtime/index.js +14 -8
- package/utils/admin-auth.js +655 -576
- package/utils/config-manager.js +72 -72
- package/utils/env-manager.js +117 -26
- package/utils/i18n-helper.js +50 -49
- package/utils/json-output.js +13 -12
- package/utils/logger.js +7 -6
- package/utils/prompt-helper.js +44 -41
- package/utils/secure-errors.js +156 -154
- package/utils/security.js +235 -233
- package/utils/setup-enforcer.js +110 -109
- package/utils/terminal-icons.js +164 -163
- package/settings/i18ntk-config.json +0 -283
- package/utils/admin-pin.js +0 -520
- package/utils/arg-parser.js +0 -40
- package/utils/cli-args.js +0 -210
- package/utils/mini-commander.js +0 -179
- package/utils/missing-key-validator.js +0 -858
- package/utils/path-utils.js +0 -33
- package/utils/performance-optimizer.js +0 -246
- package/utils/prompt-new.js +0 -55
- package/utils/promptPin.js +0 -76
- package/utils/safe-json.js +0 -40
- package/utils/secure-backup.js +0 -340
- package/utils/security-check-improved.js +0 -393
- package/utils/security-config.js +0 -239
- package/utils/setup-validator.js +0 -717
- package/utils/ultra-performance-optimizer.js +0 -352
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "1.10.2",
|
|
3
|
-
"language": "en",
|
|
4
|
-
"uiLanguage": "en",
|
|
5
|
-
"theme": "dark",
|
|
6
|
-
"projectRoot": "/",
|
|
7
|
-
"sourceDir": "./locales",
|
|
8
|
-
"i18nDir": "./i18n",
|
|
9
|
-
"outputDir": "./i18ntk-reports",
|
|
10
|
-
"setup": {
|
|
11
|
-
"completed": true,
|
|
12
|
-
"completedAt": "2025-08-23T16:47:49.232Z",
|
|
13
|
-
"version": "1.10.2",
|
|
14
|
-
"setupId": "setup_1755967669233_0xhzlh1fs"
|
|
15
|
-
},
|
|
16
|
-
"framework": {
|
|
17
|
-
"detected": false,
|
|
18
|
-
"preference": "none",
|
|
19
|
-
"prompt": "always",
|
|
20
|
-
"lastPromptedVersion": null
|
|
21
|
-
},
|
|
22
|
-
"scriptDirectories": {
|
|
23
|
-
"main": "./main",
|
|
24
|
-
"utils": "./utils",
|
|
25
|
-
"scripts": "./scripts",
|
|
26
|
-
"settings": "./settings",
|
|
27
|
-
"uiLocales": "./ui-locales"
|
|
28
|
-
},
|
|
29
|
-
"processing": {
|
|
30
|
-
"mode": "extreme",
|
|
31
|
-
"cacheEnabled": true,
|
|
32
|
-
"batchSize": 1000,
|
|
33
|
-
"maxWorkers": 4,
|
|
34
|
-
"timeout": 30000,
|
|
35
|
-
"retryAttempts": 3,
|
|
36
|
-
"parallelProcessing": true,
|
|
37
|
-
"memoryOptimization": true,
|
|
38
|
-
"compression": true
|
|
39
|
-
},
|
|
40
|
-
"reports": {
|
|
41
|
-
"format": "json",
|
|
42
|
-
"includeSource": false,
|
|
43
|
-
"includeStats": true,
|
|
44
|
-
"includeRecommendations": true,
|
|
45
|
-
"includeSecurity": true,
|
|
46
|
-
"includePerformance": true,
|
|
47
|
-
"saveToFile": true,
|
|
48
|
-
"fileName": "i18n-report-[timestamp].json",
|
|
49
|
-
"outputPath": "./i18ntk-reports",
|
|
50
|
-
"compress": true
|
|
51
|
-
},
|
|
52
|
-
"ui": {
|
|
53
|
-
"showProgress": true,
|
|
54
|
-
"showColors": true,
|
|
55
|
-
"showTimestamps": true,
|
|
56
|
-
"showTips": true,
|
|
57
|
-
"showWarnings": true,
|
|
58
|
-
"showErrors": true,
|
|
59
|
-
"interactive": true,
|
|
60
|
-
"confirmActions": true,
|
|
61
|
-
"autoComplete": true,
|
|
62
|
-
"syntaxHighlighting": true
|
|
63
|
-
},
|
|
64
|
-
"behavior": {
|
|
65
|
-
"autoSave": true,
|
|
66
|
-
"autoBackup": true,
|
|
67
|
-
"backupFrequency": "weekly",
|
|
68
|
-
"maxBackups": 10,
|
|
69
|
-
"confirmDestructive": true,
|
|
70
|
-
"validateOnSave": true,
|
|
71
|
-
"formatOnSave": true,
|
|
72
|
-
"lintOnSave": true,
|
|
73
|
-
"autoFix": false,
|
|
74
|
-
"strictMode": false,
|
|
75
|
-
"devMode": false
|
|
76
|
-
},
|
|
77
|
-
"notifications": {
|
|
78
|
-
"enabled": true,
|
|
79
|
-
"desktop": true,
|
|
80
|
-
"sound": false,
|
|
81
|
-
"types": {
|
|
82
|
-
"success": true,
|
|
83
|
-
"warning": true,
|
|
84
|
-
"error": true,
|
|
85
|
-
"info": true,
|
|
86
|
-
"debug": false
|
|
87
|
-
},
|
|
88
|
-
"timeout": 5000,
|
|
89
|
-
"maxNotifications": 5
|
|
90
|
-
},
|
|
91
|
-
"dateTime": {
|
|
92
|
-
"timezone": "auto",
|
|
93
|
-
"format": "YYYY-MM-DD HH:mm:ss",
|
|
94
|
-
"locale": "en-US",
|
|
95
|
-
"dateFormat": "YYYY-MM-DD",
|
|
96
|
-
"timeFormat": "HH:mm:ss",
|
|
97
|
-
"use24Hour": true,
|
|
98
|
-
"showTimezone": false
|
|
99
|
-
},
|
|
100
|
-
"advanced": {
|
|
101
|
-
"debugMode": false,
|
|
102
|
-
"verboseLogging": false,
|
|
103
|
-
"performanceTracking": true,
|
|
104
|
-
"memoryProfiling": false,
|
|
105
|
-
"stackTraces": false,
|
|
106
|
-
"experimentalFeatures": false,
|
|
107
|
-
"customExtractors": [],
|
|
108
|
-
"customValidators": [],
|
|
109
|
-
"customFormatters": []
|
|
110
|
-
},
|
|
111
|
-
"backup": {
|
|
112
|
-
"enabled": true,
|
|
113
|
-
"location": "./backups",
|
|
114
|
-
"frequency": "daily",
|
|
115
|
-
"retention": 7,
|
|
116
|
-
"compression": true,
|
|
117
|
-
"encryption": true,
|
|
118
|
-
"autoCleanup": true,
|
|
119
|
-
"maxSize": "100MB",
|
|
120
|
-
"includeReports": true,
|
|
121
|
-
"includeLogs": true
|
|
122
|
-
},
|
|
123
|
-
"security": {
|
|
124
|
-
"enabled": true,
|
|
125
|
-
"adminPinEnabled": false,
|
|
126
|
-
"sessionTimeout": 1800000,
|
|
127
|
-
"maxFailedAttempts": 3,
|
|
128
|
-
"lockoutDuration": 300000,
|
|
129
|
-
"encryption": {
|
|
130
|
-
"enabled": true,
|
|
131
|
-
"algorithm": "aes-256-gcm",
|
|
132
|
-
"keyDerivation": "pbkdf2",
|
|
133
|
-
"iterations": 100000
|
|
134
|
-
},
|
|
135
|
-
"pinProtection": {
|
|
136
|
-
"enabled": false,
|
|
137
|
-
"pin": null,
|
|
138
|
-
"protectedScripts": {
|
|
139
|
-
"init": false,
|
|
140
|
-
"analyze": false,
|
|
141
|
-
"validate": false,
|
|
142
|
-
"fix": false,
|
|
143
|
-
"manage": true,
|
|
144
|
-
"settings": true,
|
|
145
|
-
"admin": true
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
"auditLog": true,
|
|
149
|
-
"sanitizeInput": true,
|
|
150
|
-
"validatePaths": true,
|
|
151
|
-
"restrictAccess": false
|
|
152
|
-
},
|
|
153
|
-
"debug": {
|
|
154
|
-
"enabled": false,
|
|
155
|
-
"logLevel": "info",
|
|
156
|
-
"logFile": "./i18ntk-debug.log",
|
|
157
|
-
"maxFileSize": "10MB",
|
|
158
|
-
"maxFiles": 5,
|
|
159
|
-
"includeStackTrace": false,
|
|
160
|
-
"includeMemoryUsage": false,
|
|
161
|
-
"performanceMetrics": false
|
|
162
|
-
},
|
|
163
|
-
"sizeLimit": null,
|
|
164
|
-
"placeholderStyles": {
|
|
165
|
-
"en": [
|
|
166
|
-
"\\\\{\\\\{[^}]+\\\\}\\\\}",
|
|
167
|
-
"%\\\\{[^}]+\\\\}",
|
|
168
|
-
"%[sdif]",
|
|
169
|
-
"\\\\$\\\\{[^}]+\\\\}",
|
|
170
|
-
"\\\\$[a-zA-Z_][a-zA-Z0-9_]*",
|
|
171
|
-
"__\\\\w+__",
|
|
172
|
-
"\\\\{\\\\w+\\\\}",
|
|
173
|
-
"\\\\[\\\\[\\\\w+\\\\]\\\\]",
|
|
174
|
-
"\\\\{\\\\{t\\\\s+['\"][^'\"]*['\"]\\\\}\\\\}",
|
|
175
|
-
"t\\\\(['\"][^'\"]*['\"]",
|
|
176
|
-
"i18n\\\\.t\\\\(['\"][^'\"]*['\"]"
|
|
177
|
-
],
|
|
178
|
-
"de": [
|
|
179
|
-
"%\\\\{[^}]+\\\\}",
|
|
180
|
-
"%[sdif]",
|
|
181
|
-
"\\\\$\\\\{[^}]+\\\\}",
|
|
182
|
-
"\\\\$[a-zA-Z_][a-zA-Z0-9_]*",
|
|
183
|
-
"__\\\\w+__",
|
|
184
|
-
"\\\\{\\\\w+\\\\}",
|
|
185
|
-
"\\\\[\\\\[\\\\w+\\\\]\\\\]",
|
|
186
|
-
"\\\\{\\\\{[^}]+\\\\}\\\\}"
|
|
187
|
-
],
|
|
188
|
-
"es": [
|
|
189
|
-
"%\\\\{[^}]+\\\\}",
|
|
190
|
-
"%[sdif]",
|
|
191
|
-
"\\\\$\\\\{[^}]+\\\\}",
|
|
192
|
-
"\\\\$[a-zA-Z_][a-zA-Z0-9_]*",
|
|
193
|
-
"__\\\\w+__",
|
|
194
|
-
"\\\\{\\\\w+\\\\}",
|
|
195
|
-
"\\\\[\\\\[\\\\w+\\\\]\\\\]",
|
|
196
|
-
"\\\\{\\\\{[^}]+\\\\}\\\\}"
|
|
197
|
-
],
|
|
198
|
-
"fr": [
|
|
199
|
-
"%\\\\{[^}]+\\\\}",
|
|
200
|
-
"%[sdif]",
|
|
201
|
-
"\\\\$\\\\{[^}]+\\\\}",
|
|
202
|
-
"\\\\$[a-zA-Z_][a-zA-Z0-9_]*",
|
|
203
|
-
"__\\\\w+__",
|
|
204
|
-
"\\\\{\\\\w+\\\\}",
|
|
205
|
-
"\\\\[\\\\[\\\\w+\\\\]\\\\]",
|
|
206
|
-
"\\\\{\\\\{[^}]+\\\\}\\\\}",
|
|
207
|
-
"\\\\{\\\\d+\\\\}"
|
|
208
|
-
],
|
|
209
|
-
"ru": [
|
|
210
|
-
"%\\\\{[^}]+\\\\}",
|
|
211
|
-
"%[sdif]",
|
|
212
|
-
"\\\\$\\\\{[^}]+\\\\}",
|
|
213
|
-
"\\\\$[a-zA-Z_][a-zA-Z0-9_]*",
|
|
214
|
-
"__\\\\w+__",
|
|
215
|
-
"\\\\{\\\\w+\\\\}",
|
|
216
|
-
"\\\\[\\\\[\\\\w+\\\\]\\\\]",
|
|
217
|
-
"\\\\{\\\\{[^}]+\\\\}\\\\}",
|
|
218
|
-
"\\\\{\\\\d+\\\\}"
|
|
219
|
-
],
|
|
220
|
-
"zh": [
|
|
221
|
-
"%\\\\{[^}]+\\\\}",
|
|
222
|
-
"%[sdif]",
|
|
223
|
-
"\\\\$\\\\{[^}]+\\\\}",
|
|
224
|
-
"\\\\$[a-zA-Z_][a-zA-Z0-9_]*",
|
|
225
|
-
"__\\\\w+__",
|
|
226
|
-
"\\\\{\\\\w+\\\\}",
|
|
227
|
-
"\\\\[\\\\[\\\\w+\\\\]\\\\]",
|
|
228
|
-
"\\\\{\\\\{[^}]+\\\\}\\\\}",
|
|
229
|
-
"\\\\{\\\\d+\\\\}"
|
|
230
|
-
],
|
|
231
|
-
"ja": [
|
|
232
|
-
"%\\\\{[^}]+\\\\}",
|
|
233
|
-
"%[sdif]",
|
|
234
|
-
"\\\\$\\\\{[^}]+\\\\}",
|
|
235
|
-
"\\\\$[a-zA-Z_][a-zA-Z0-9_]*",
|
|
236
|
-
"__\\\\w+__",
|
|
237
|
-
"\\\\{\\\\w+\\\\}",
|
|
238
|
-
"\\\\[\\\\[\\\\w+\\\\]\\\\]",
|
|
239
|
-
"\\\\{\\\\{[^}]+\\\\}\\\\}",
|
|
240
|
-
"\\\\{\\\\d+\\\\}"
|
|
241
|
-
],
|
|
242
|
-
"universal": [
|
|
243
|
-
"\\\\{\\\\{[^}]+\\\\}\\\\}",
|
|
244
|
-
"%\\\\{[^}]+\\\\}",
|
|
245
|
-
"%[sdif]",
|
|
246
|
-
"\\\\$\\\\{[^}]+\\\\}",
|
|
247
|
-
"\\\\$[a-zA-Z_][a-zA-Z0-9_]*",
|
|
248
|
-
"__\\\\w+__",
|
|
249
|
-
"\\\\{\\\\w+\\\\}",
|
|
250
|
-
"\\\\[\\\\[\\\\w+\\\\]\\\\]",
|
|
251
|
-
"\\\\{\\\\d+\\\\}",
|
|
252
|
-
"\\\\{\\\\d*\\\\}"
|
|
253
|
-
],
|
|
254
|
-
"frameworks": {
|
|
255
|
-
"react": [
|
|
256
|
-
"\\\\{\\\\{[^}]+\\\\}\\\\}",
|
|
257
|
-
"\\\\$\\\\{[^}]+\\\\}",
|
|
258
|
-
"t\\\\(['\"][^'\"]*['\"]",
|
|
259
|
-
"i18n\\\\.t\\\\(['\"][^'\"]*['\"]",
|
|
260
|
-
"useTranslation\\\\s*\\\\([^)]*\\\\)",
|
|
261
|
-
"<Trans[^>]*>.*?</Trans>"
|
|
262
|
-
],
|
|
263
|
-
"vue": [
|
|
264
|
-
"\\\\$t\\\\(['\"][^'\"]*['\"]",
|
|
265
|
-
"\\\\$tc\\\\(['\"][^'\"]*['\"]",
|
|
266
|
-
"\\\\{\\\\{\\\\$t\\\\([^)]+\\\\)\\\\}\\\\}",
|
|
267
|
-
"v-t=['\"][^'\"]*['\"]"
|
|
268
|
-
],
|
|
269
|
-
"angular": [
|
|
270
|
-
"'[^']*'\\\\s*\\\\|\\\\s*translate",
|
|
271
|
-
"\\\\{[^}]*'[^']*'\\\\s*\\\\|\\\\s*translate[^}]*\\\\}",
|
|
272
|
-
"translate\\\\s*:\\s*['\"][^'\"]*['\"]"
|
|
273
|
-
],
|
|
274
|
-
"nextjs": [
|
|
275
|
-
"t\\\\(['\"][^'\"]*['\"]",
|
|
276
|
-
"router\\\\.locale",
|
|
277
|
-
"useTranslation\\\\s*\\\\([^)]*\\\\)",
|
|
278
|
-
"getStaticProps\\\\s*\\\\([^)]*\\\\)",
|
|
279
|
-
"getServerSideProps\\\\s*\\\\([^)]*\\\\)"
|
|
280
|
-
]
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
}
|