i18ntk 1.4.0 → 1.4.2

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 (107) hide show
  1. package/CHANGELOG.md +61 -1
  2. package/README.md +410 -20
  3. package/locales/de/common.json +17 -20
  4. package/locales/en/common.json +17 -20
  5. package/locales/es/common.json +17 -20
  6. package/locales/fr/common.json +17 -20
  7. package/locales/ru/common.json +17 -20
  8. package/main/i18ntk-manage.js +52 -24
  9. package/package.json +6 -8
  10. package/{dev → scripts}/debug/README.md +9 -5
  11. package/{dev → scripts}/debug/debugger.js +84 -4
  12. package/scripts/prepublish.js +2 -2
  13. package/scripts/validate-all-translations.js +2 -2
  14. package/ui-locales/de/debug.json +5 -5
  15. package/ui-locales/de/init.json +1 -0
  16. package/ui-locales/de/language.json +11 -2
  17. package/ui-locales/de/security.json +2 -1
  18. package/ui-locales/de/sizing.json +1 -0
  19. package/ui-locales/de/usage.json +1 -0
  20. package/ui-locales/en/debug.json +5 -5
  21. package/ui-locales/en/init.json +1 -0
  22. package/ui-locales/en/language.json +11 -2
  23. package/ui-locales/en/security.json +2 -1
  24. package/ui-locales/en/sizing.json +2 -0
  25. package/ui-locales/en/usage.json +1 -0
  26. package/ui-locales/es/debug.json +5 -5
  27. package/ui-locales/es/init.json +1 -0
  28. package/ui-locales/es/language.json +11 -2
  29. package/ui-locales/es/security.json +2 -1
  30. package/ui-locales/es/sizing.json +2 -0
  31. package/ui-locales/es/usage.json +1 -0
  32. package/ui-locales/fr/debug.json +5 -5
  33. package/ui-locales/fr/init.json +1 -0
  34. package/ui-locales/fr/language.json +11 -2
  35. package/ui-locales/fr/security.json +2 -1
  36. package/ui-locales/fr/sizing.json +2 -0
  37. package/ui-locales/fr/usage.json +1 -0
  38. package/ui-locales/ja/debug.json +5 -5
  39. package/ui-locales/ja/init.json +1 -0
  40. package/ui-locales/ja/language.json +11 -2
  41. package/ui-locales/ja/security.json +2 -1
  42. package/ui-locales/ja/sizing.json +3 -0
  43. package/ui-locales/ja/usage.json +1 -0
  44. package/ui-locales/pt/debug.json +5 -5
  45. package/ui-locales/pt/init.json +1 -0
  46. package/ui-locales/pt/language.json +11 -2
  47. package/ui-locales/pt/security.json +2 -1
  48. package/ui-locales/pt/sizing.json +2 -0
  49. package/ui-locales/pt/usage.json +1 -0
  50. package/ui-locales/ru/debug.json +5 -5
  51. package/ui-locales/ru/init.json +1 -0
  52. package/ui-locales/ru/language.json +11 -2
  53. package/ui-locales/ru/security.json +2 -1
  54. package/ui-locales/ru/sizing.json +2 -0
  55. package/ui-locales/ru/usage.json +1 -0
  56. package/ui-locales/zh/debug.json +5 -5
  57. package/ui-locales/zh/init.json +1 -0
  58. package/ui-locales/zh/language.json +11 -2
  59. package/ui-locales/zh/security.json +2 -1
  60. package/ui-locales/zh/sizing.json +2 -0
  61. package/ui-locales/zh/usage.json +1 -0
  62. package/utils/test-complete-system.js +1 -1
  63. package/dev/README.md +0 -37
  64. package/docs/INSTALLATION.md +0 -98
  65. package/docs/PIN_PROTECTION_GUIDE.md +0 -265
  66. package/docs/README.md +0 -111
  67. package/docs/SCRIPT_DIRECTORY_GUIDE.md +0 -278
  68. package/docs/TODO_ROADMAP.md +0 -279
  69. package/docs/TRANSLATION_STATUS.md +0 -67
  70. package/docs/api/API_REFERENCE.md +0 -258
  71. package/docs/api/COMPONENTS.md +0 -492
  72. package/docs/api/CONFIGURATION.md +0 -676
  73. package/docs/api/NPM_PUBLISHING_GUIDE.md +0 -426
  74. package/docs/debug/DEBUG_README.md +0 -30
  75. package/docs/debug/DEBUG_TOOLS.md +0 -152
  76. package/docs/development/AGENTS.md +0 -349
  77. package/docs/development/DEVELOPMENT_RULES.md +0 -165
  78. package/docs/development/DEV_README.md +0 -41
  79. package/docs/release-notes/RELEASE_NOTES_v1.0.0.md +0 -175
  80. package/docs/release-notes/RELEASE_NOTES_v1.0.4.md +0 -153
  81. package/docs/release-notes/RELEASE_NOTES_v1.1.2.md +0 -68
  82. package/docs/release-notes/RELEASE_NOTES_v1.1.5.md +0 -81
  83. package/docs/release-notes/RELEASE_NOTES_v1.4.0.md +0 -115
  84. package/docs/release-notes/RELEASE_NOTES_v1.6.0.md +0 -141
  85. package/docs/release-notes/RELEASE_NOTES_v1.6.1.md +0 -185
  86. package/docs/release-notes/RELEASE_NOTES_v1.6.3.md +0 -199
  87. package/docs/release-notes/v1.3.0.md +0 -162
  88. package/docs/release-notes/v1.3.1.md +0 -136
  89. package/docs/reports/ANALYSIS_README.md +0 -17
  90. package/docs/reports/CONSOLE_MISMATCH_BUG_REPORT_v1.5.0.md +0 -181
  91. package/docs/reports/SIZING_README.md +0 -18
  92. package/docs/reports/SUMMARY_README.md +0 -18
  93. package/docs/reports/TRANSLATION_BUG_REPORT_v1.5.0.md +0 -129
  94. package/docs/reports/USAGE_README.md +0 -18
  95. package/docs/reports/VALIDATION_README.md +0 -18
  96. /package/{dev → scripts}/debug/complete-console-translations.js +0 -0
  97. /package/{dev → scripts}/debug/console-key-checker.js +0 -0
  98. /package/{dev → scripts}/debug/console-translations.js +0 -0
  99. /package/{dev → scripts}/debug/debug-security.js +0 -0
  100. /package/{dev → scripts}/debug/debug-translation.js +0 -0
  101. /package/{dev → scripts}/debug/export-missing-keys.js +0 -0
  102. /package/{dev → scripts}/debug/final-normalize.js +0 -0
  103. /package/{dev → scripts}/debug/find-extra-keys.js +0 -0
  104. /package/{dev → scripts}/debug/normalize-locales.js +0 -0
  105. /package/{dev → scripts}/debug/refactor-locales.js +0 -0
  106. /package/{dev → scripts}/debug/reorder-locales.js +0 -0
  107. /package/{dev → scripts}/debug/replace-hardcoded-console.js +0 -0
@@ -1,492 +0,0 @@
1
- # I18N Management Toolkit - Components Documentation
2
-
3
- **Version:** 1.4.6
4
- **Last Updated:** 26/07/2025
5
- **Maintainer:** Vladimir Noskov
6
-
7
- ## 📋 Overview
8
-
9
- This document provides detailed information about all components, utilities, and modules within the I18N Management Toolkit.
10
-
11
- ## 🏗️ Core Components
12
-
13
- ### Main Modules
14
-
15
- #### `i18ntk-manage.js`
16
- **Location:** `main/i18ntk-manage.js`
17
- **Purpose:** Main management interface and interactive menu
18
- **Dependencies:**
19
- - UIi18n
20
- - AdminAuth
21
- - SecurityUtils
22
- - AdminCLI
23
- - settingsManager
24
- - All analyzer modules
25
-
26
- **Key Features:**
27
- - Interactive CLI menu
28
- - Command-line argument parsing
29
- - Framework detection
30
- - Admin authentication
31
- - Settings management
32
-
33
- #### `i18ntk-init.js`
34
- **Location:** `main/i18ntk-init.js`
35
- **Purpose:** Project initialization and setup
36
- **Dependencies:**
37
- - UIi18n
38
- - i18n-helper
39
- - settings-manager
40
- - security
41
-
42
- **Key Features:**
43
- - Project structure initialization
44
- - Language file creation
45
- - Framework configuration
46
- - Source code scanning
47
-
48
- #### `i18ntk-analyze.js`
49
- **Location:** `main/i18ntk-analyze.js`
50
- **Purpose:** Translation analysis and completeness checking
51
- **Dependencies:**
52
- - UIi18n
53
- - i18n-helper
54
- - settings-manager
55
- - security
56
-
57
- **Key Features:**
58
- - Translation completeness analysis
59
- - Missing key detection
60
- - Progress reporting
61
- - Multi-language support
62
-
63
- #### `i18ntk-validate.js`
64
- **Location:** `main/i18ntk-validate.js`
65
- **Purpose:** Translation validation and quality assurance
66
- **Dependencies:**
67
- - UIi18n
68
- - i18n-helper
69
- - settings-manager
70
- - security
71
- - AdminCLI
72
-
73
- **Key Features:**
74
- - JSON/YAML validation
75
- - Syntax error detection
76
- - Consistency checking
77
- - Auto-fix capabilities
78
-
79
- #### `i18ntk-usage.js`
80
- **Location:** `main/i18ntk-usage.js`
81
- **Purpose:** Translation key usage analysis
82
- **Dependencies:**
83
- - UIi18n
84
- - i18n-helper
85
- - settings-manager
86
- - security
87
- - AdminCLI
88
-
89
- **Key Features:**
90
- - Unused key detection
91
- - Missing key identification
92
- - Source code scanning
93
- - Usage statistics
94
-
95
- #### `i18ntk-complete.js`
96
- **Location:** `main/i18ntk-complete.js`
97
- **Purpose:** Translation completion and auto-translation
98
- **Dependencies:**
99
- - UIi18n
100
- - i18n-helper
101
- - settings-manager
102
- - security
103
-
104
- **Key Features:**
105
- - Missing translation completion
106
- - AI-powered translation
107
- - Manual translation input
108
- - Batch processing
109
-
110
- #### `i18ntk-sizing.js`
111
- **Location:** `main/i18ntk-sizing.js`
112
- **Purpose:** Translation file sizing analysis
113
- **Dependencies:**
114
- - UIi18n
115
- - i18n-helper
116
- - settings-manager
117
- - security
118
-
119
- **Key Features:**
120
- - File size analysis
121
- - Memory usage calculation
122
- - Performance optimization
123
- - Size reporting
124
-
125
- #### `i18ntk-summary.js`
126
- **Location:** `main/i18ntk-summary.js`
127
- **Purpose:** Comprehensive project summary generation
128
- **Dependencies:**
129
- - UIi18n
130
- - i18n-helper
131
- - settings-manager
132
- - security
133
-
134
- **Key Features:**
135
- - Project overview generation
136
- - Multi-format reporting
137
- - Statistical analysis
138
- - Visual charts and graphs
139
-
140
- #### `i18ntk-autorun.js`
141
- **Location:** `main/i18ntk-autorun.js`
142
- **Purpose:** Automated workflow execution
143
- **Dependencies:**
144
- - All main modules
145
- - Workflow configuration
146
-
147
- **Key Features:**
148
- - Automated task execution
149
- - Workflow orchestration
150
- - Progress tracking
151
- - Error handling
152
-
153
- ## 🛠️ Utility Components
154
-
155
- ### Core Utilities
156
-
157
- #### `i18ntk-ui.js`
158
- **Location:** Root directory
159
- **Purpose:** User interface internationalization
160
- **Features:**
161
- - Multi-language UI support
162
- - Dynamic language switching
163
- - Message formatting
164
- - Locale-specific formatting
165
-
166
- #### `settings-manager.js`
167
- **Location:** Root directory
168
- **Purpose:** Configuration and settings management
169
- **Features:**
170
- - Configuration file handling
171
- - Settings validation
172
- - Default value management
173
- - Environment variable support
174
-
175
- #### `settings-cli.js`
176
- **Location:** Root directory
177
- **Purpose:** Command-line settings interface
178
- **Features:**
179
- - CLI-based settings management
180
- - Interactive configuration
181
- - Settings import/export
182
- - Validation and error handling
183
-
184
- ### Security Components
185
-
186
- #### `utils/security.js`
187
- **Location:** `utils/security.js`
188
- **Purpose:** Security utilities and encryption
189
- **Features:**
190
- - Data encryption/decryption
191
- - Secure key storage
192
- - Authentication helpers
193
- - Security validation
194
-
195
- #### `utils/admin-auth.js`
196
- **Location:** `utils/admin-auth.js`
197
- **Purpose:** Administrative authentication
198
- **Features:**
199
- - Admin user authentication
200
- - Permission management
201
- - Session handling
202
- - Security logging
203
-
204
- #### `utils/admin-cli.js`
205
- **Location:** `utils/admin-cli.js`
206
- **Purpose:** Administrative command-line interface
207
- **Features:**
208
- - Admin-only commands
209
- - Privileged operations
210
- - Audit logging
211
- - Security enforcement
212
-
213
- ### Helper Components
214
-
215
- #### `utils/i18n-helper.js`
216
- **Location:** `utils/i18n-helper.js`
217
- **Purpose:** Core i18n functionality and helpers
218
- **Features:**
219
- - File system operations
220
- - JSON/YAML parsing
221
- - Key extraction
222
- - Language detection
223
-
224
- #### `utils/detect-language-mismatches.js`
225
- **Location:** `utils/detect-language-mismatches.js`
226
- **Purpose:** Language mismatch detection
227
- **Features:**
228
- - Cross-language validation
229
- - Inconsistency detection
230
- - Mismatch reporting
231
- - Auto-correction suggestions
232
-
233
- #### `utils/maintain-language-purity.js`
234
- **Location:** `utils/maintain-language-purity.js`
235
- **Purpose:** Language purity maintenance
236
- **Features:**
237
- - Language consistency checking
238
- - Purity score calculation
239
- - Quality assurance
240
- - Improvement suggestions
241
-
242
- #### `utils/validate-language-purity.js`
243
- **Location:** `utils/validate-language-purity.js`
244
- **Purpose:** Language purity validation
245
- **Features:**
246
- - Purity validation rules
247
- - Quality metrics
248
- - Validation reporting
249
- - Compliance checking
250
-
251
- #### `utils/translate-mismatches.js`
252
- **Location:** `utils/translate-mismatches.js`
253
- **Purpose:** Mismatch translation and correction
254
- **Features:**
255
- - Automatic mismatch correction
256
- - Translation suggestions
257
- - Batch processing
258
- - Quality improvement
259
-
260
- #### `utils/native-translations.js`
261
- **Location:** `utils/native-translations.js`
262
- **Purpose:** Native language translation support
263
- **Features:**
264
- - Native speaker validation
265
- - Cultural context checking
266
- - Localization best practices
267
- - Regional variations
268
-
269
- #### `utils/update-console-i18n.js`
270
- **Location:** `utils/update-console-i18n.js`
271
- **Purpose:** Console message internationalization
272
- **Features:**
273
- - Console message translation
274
- - Dynamic message updates
275
- - Logging internationalization
276
- - Debug message localization
277
-
278
- ## 🐛 Debug Components
279
-
280
- ### Debug Tools
281
-
282
- #### `dev/debug/debugger.js`
283
- **Location:** `dev/debug/debugger.js`
284
- **Purpose:** Main debugging interface
285
- **Features:**
286
- - Comprehensive debugging
287
- - Error analysis
288
- - Performance monitoring
289
- - Diagnostic reporting
290
-
291
- #### `dev/debug/console-key-checker.js`
292
- **Location:** `dev/debug/console-key-checker.js`
293
- **Purpose:** Console key validation and checking
294
- **Features:**
295
- - Console message key validation
296
- - Missing key detection
297
- - Usage analysis
298
- - Consistency checking
299
-
300
- #### `dev/debug/console-translations.js`
301
- **Location:** `dev/debug/console-translations.js`
302
- **Purpose:** Console message translation management
303
- **Features:**
304
- - Console message translation
305
- - Dynamic updates
306
- - Language switching
307
- - Message formatting
308
-
309
- #### `dev/debug/complete-console-translations.js`
310
- **Location:** `dev/debug/complete-console-translations.js`
311
- **Purpose:** Complete console translation coverage
312
- **Features:**
313
- - Full console translation
314
- - Missing translation completion
315
- - Batch processing
316
- - Quality assurance
317
-
318
- #### `dev/debug/replace-hardcoded-console.js`
319
- **Location:** `dev/debug/replace-hardcoded-console.js`
320
- **Purpose:** Replace hardcoded console messages
321
- **Features:**
322
- - Hardcoded message detection
323
- - Automatic replacement
324
- - Code transformation
325
- - Internationalization conversion
326
-
327
- #### `dev/debug/export-missing-keys.js`
328
- **Location:** `dev/debug/export-missing-keys.js`
329
- **Purpose:** Export missing translation keys
330
- **Features:**
331
- - Missing key identification
332
- - Export functionality
333
- - Multiple format support
334
- - Batch processing
335
-
336
- ## 🧪 Test Components
337
-
338
- ### Test Utilities
339
-
340
- #### `dev/tests/test-complete-system.js`
341
- **Location:** `dev/tests/test-complete-system.js`
342
- **Purpose:** Complete system testing
343
- **Features:**
344
- - End-to-end testing
345
- - System integration tests
346
- - Performance testing
347
- - Regression testing
348
-
349
- #### `dev/tests/test-console-i18n.js`
350
- **Location:** `dev/tests/test-console-i18n.js`
351
- **Purpose:** Console internationalization testing
352
- **Features:**
353
- - Console message testing
354
- - Translation validation
355
- - Language switching tests
356
- - Message formatting tests
357
-
358
- #### `dev/tests/test-features.js`
359
- **Location:** `dev/tests/test-features.js`
360
- **Purpose:** Feature-specific testing
361
- **Features:**
362
- - Individual feature testing
363
- - Unit testing
364
- - Integration testing
365
- - Feature validation
366
-
367
- #### `utils/test-complete-system.js`
368
- **Location:** `utils/test-complete-system.js`
369
- **Purpose:** System testing utilities
370
- **Features:**
371
- - Testing framework integration
372
- - Test data management
373
- - Result validation
374
- - Report generation
375
-
376
- #### `utils/test-console-i18n.js`
377
- **Location:** `utils/test-console-i18n.js`
378
- **Purpose:** Console i18n testing utilities
379
- **Features:**
380
- - Console testing helpers
381
- - Message validation
382
- - Translation testing
383
- - Assertion utilities
384
-
385
- ## 📊 Component Dependencies
386
-
387
- ### Dependency Graph
388
-
389
- ```
390
- i18ntk-manage.js
391
- ├── UIi18n
392
- ├── AdminAuth
393
- ├── SecurityUtils
394
- ├── AdminCLI
395
- ├── settingsManager
396
- ├── I18nInitializer
397
- ├── I18nAnalyzer
398
- ├── I18nValidator
399
- ├── I18nUsageAnalyzer
400
- ├── I18nSizingAnalyzer
401
- └── I18nDebugger
402
-
403
- Core Utilities
404
- ├── i18ntk-ui.js
405
- ├── settings-manager.js
406
- ├── settings-cli.js
407
- └── utils/
408
- ├── security.js
409
- ├── admin-auth.js
410
- ├── admin-cli.js
411
- ├── i18n-helper.js
412
- └── [other utilities]
413
-
414
- Debug Components
415
- └── dev/debug/
416
- ├── debugger.js
417
- ├── console-key-checker.js
418
- ├── console-translations.js
419
- └── [other debug tools]
420
- ```
421
-
422
- ## 🔧 Component Configuration
423
-
424
- ### Configuration Options
425
-
426
- Each component can be configured through:
427
-
428
- 1. **Environment Variables**
429
- 2. **Configuration Files** (`i18ntk-config.json`, `admin-config.json`)
430
- 3. **Command-line Arguments**
431
- 4. **Programmatic Configuration**
432
-
433
- ### Example Component Configuration
434
-
435
- ```javascript
436
- // Component initialization with configuration
437
- const analyzer = new I18nAnalyzer({
438
- sourceDir: './src',
439
- localesDir: './locales',
440
- languages: ['en', 'es', 'fr'],
441
- framework: 'react-i18next',
442
- validation: {
443
- strict: true,
444
- autoFix: false
445
- },
446
- reporting: {
447
- format: 'html',
448
- detailed: true
449
- }
450
- });
451
- ```
452
-
453
- ## 📈 Performance Considerations
454
-
455
- ### Component Performance
456
-
457
- | Component | Performance Impact | Optimization Tips |
458
- |-----------|-------------------|-------------------|
459
- | i18ntk-analyze | Medium | Use caching, limit file scanning |
460
- | i18ntk-validate | Low | Batch validation, async processing |
461
- | i18ntk-usage | High | Optimize regex patterns, use indexing |
462
- | i18ntk-complete | High | Batch API calls, implement rate limiting |
463
- | i18ntk-sizing | Low | Cache file sizes, use streaming |
464
-
465
- ### Memory Usage
466
-
467
- - **Small Projects** (<100 files): ~50MB
468
- - **Medium Projects** (100-1000 files): ~150MB
469
- - **Large Projects** (>1000 files): ~300MB+
470
-
471
- ## 🔄 Component Lifecycle
472
-
473
- ### Initialization Sequence
474
-
475
- 1. **Configuration Loading**
476
- 2. **Dependency Resolution**
477
- 3. **Framework Detection**
478
- 4. **Security Initialization**
479
- 5. **UI Language Setup**
480
- 6. **Component Registration**
481
-
482
- ### Cleanup Sequence
483
-
484
- 1. **Resource Cleanup**
485
- 2. **File Handle Closure**
486
- 3. **Memory Deallocation**
487
- 4. **Temporary File Removal**
488
- 5. **Log Finalization**
489
-
490
- ---
491
-
492
- **Note:** This component documentation is maintained for version 1.4.6. For implementation details, refer to the source code and [API Reference](./API_REFERENCE.md).