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,426 +0,0 @@
1
- # NPM Publishing Guide - I18N Management Toolkit
2
-
3
- **Version:** 1.1.5
4
- **Release Date:** July 27, 2025
5
- **Status:** Ready for Stable NPM/Yarn Release
6
- **Maintainer:** Vladimir Noskov
7
-
8
- ## 📦 Package Overview
9
-
10
- The I18N Management Toolkit (i18ntk) is now ready for stable distribution on NPM and Yarn registries. This guide covers the complete publishing process and package management.
11
-
12
- ### Package Details
13
- - **Package Name:** `i18ntk`
14
- - **Current Version:** 1.1.5
15
- - **License:** MIT
16
- - **Repository:** [GitHub](https://github.com/vladnoskv/i18n-management-toolkit)
17
- - **Maintainer:** Vladimir Noskov <vladnoskv@gmail.com>
18
-
19
- ## ✅ Pre-Publishing Checklist
20
-
21
- ### 🧪 Quality Assurance
22
- - [x] **All tests passing:** 25/25 tests (100%)
23
- - [x] **Translation coverage:** 573/573 keys (100%)
24
- - [x] **Zero extra keys:** Production-ready quality
25
- - [x] **Dynamic translations:** Verified working
26
- - [x] **Documentation:** Updated to v1.1.5
27
- - [x] **Package verification:** `npm run verify-package` passes
28
-
29
- ### 📋 Package Configuration
30
- - [x] **package.json:** Updated to v1.1.5
31
- - [x] **Version info:** All metadata current
32
- - [x] **Dependencies:** Properly configured
33
- - [x] **Scripts:** All commands working
34
- - [x] **Files array:** Optimized for distribution
35
- - [x] **Keywords:** SEO optimized
36
-
37
- ### 📚 Documentation
38
- - [x] **README.md:** Updated with v1.1.5 stable release features
39
- - [x] **CHANGELOG.md:** Complete version history
40
- - [x] **API_REFERENCE.md:** Current API documentation
41
- - [x] **INSTALLATION.md:** Comprehensive setup guide
42
- - [x] **RELEASE_NOTES_v1.1.5.md:** Latest stable release notes
43
-
44
- ## 🚀 Publishing Process
45
-
46
- ### 1. Final Verification
47
-
48
- ```bash
49
- # Run comprehensive tests
50
- npm test
51
-
52
- # Verify package configuration
53
- npm run verify-package
54
-
55
- # Check package contents
56
- npm pack --dry-run
57
-
58
- # Validate package.json
59
- npm doctor
60
- ```
61
-
62
- ### 2. Version Management
63
-
64
- ```bash
65
- # Current version should be 1.1.5
66
- npm version --no-git-tag-version
67
-
68
- # If version needs updating:
69
- # npm version patch --no-git-tag-version # 1.1.5 -> 1.1.6
70
- # npm version minor --no-git-tag-version # 1.1.5 -> 1.2.0
71
- # npm version major --no-git-tag-version # 1.1.5 -> 2.0.0
72
- ```
73
-
74
- ### 3. Build and Package
75
-
76
- ```bash
77
- # Clean any temporary files
78
- npm run clean # if available
79
-
80
- # Create package tarball for inspection
81
- npm pack
82
-
83
- # Inspect the created tarball
84
- tar -tzf i18ntk-1.1.5.tgz
85
- ```
86
-
87
- ### 4. NPM Registry Login
88
-
89
- ```bash
90
- # Login to NPM (if not already logged in)
91
- npm login
92
-
93
- # Verify login
94
- npm whoami
95
-
96
- # Check registry
97
- npm config get registry
98
- ```
99
-
100
- ### 5. Publish to NPM
101
-
102
- ```bash
103
- # Publish as public package
104
- npm publish --access public
105
-
106
- # For beta/alpha releases (if needed):
107
- # npm publish --tag beta
108
- # npm publish --tag alpha
109
- ```
110
-
111
- ### 6. Verify Publication
112
-
113
- ```bash
114
- # Check if package is available
115
- npm view i18ntk
116
-
117
- # Check specific version
118
- npm view i18ntk@1.1.5
119
-
120
- # Test installation
121
- npm install -g i18ntk@1.1.5
122
- ```
123
-
124
- ## 📊 Package Configuration Details
125
-
126
- ### package.json Key Sections
127
-
128
- #### Basic Information
129
- ```json
130
- {
131
- "name": "i18ntk",
132
- "version": "1.1.5"
133
- "description": "Enterprise-grade internationalization management toolkit",
134
- "main": "main/i18ntk-manage.js",
135
- "license": "MIT",
136
- "preferGlobal": true
137
- }
138
- ```
139
-
140
- #### Binary Commands
141
- ```json
142
- {
143
- "bin": {
144
- "i18ntk": "./main/i18ntk-manage.js"
145
- }
146
- }
147
- ```
148
-
149
- #### Files for Distribution
150
- ```json
151
- {
152
- "files": [
153
- "*.js",
154
- "main/",
155
- "utils/",
156
- "scripts/",
157
- "ui-locales/",
158
- "locales/",
159
- "docs/",
160
- "README.md",
161
- "CHANGELOG.md",
162
- "LICENSE"
163
- ]
164
- }
165
- ```
166
-
167
- #### Keywords for Discovery
168
- ```json
169
- {
170
- "keywords": [
171
- "i18n",
172
- "internationalization",
173
- "localization",
174
- "translation",
175
- "management",
176
- "toolkit",
177
- "javascript",
178
- "typescript",
179
- "react",
180
- "vue",
181
- "angular",
182
- "cli",
183
- "automation",
184
- "validation",
185
- "analysis",
186
- "enterprise"
187
- ]
188
- }
189
- ```
190
-
191
- ## 🔧 Distribution Optimization
192
-
193
- ### .npmignore Configuration
194
-
195
- The package includes an optimized `.npmignore` file:
196
-
197
- ```
198
- # Development files
199
- dev/
200
- *.log
201
- .DS_Store
202
- node_modules/
203
-
204
- # Test files
205
- test-report.json
206
- i18ntk-reports/
207
- backups/
208
-
209
- # Git files
210
- .git/
211
- .gitignore
212
-
213
- # IDE files
214
- .vscode/
215
- .idea/
216
- *.swp
217
- *.swo
218
-
219
- # Temporary files
220
- tmp/
221
- temp/
222
- *.tmp
223
- ```
224
-
225
- ### Package Size Optimization
226
-
227
- ```bash
228
- # Check package size
229
- npm pack --dry-run
230
-
231
- # Analyze what's included
232
- npx bundlesize
233
-
234
- # Expected package size: ~2-5MB
235
- ```
236
-
237
- ## 🌍 Global vs Local Installation
238
-
239
- ### Global Installation (Recommended)
240
- ```bash
241
- # Users install globally
242
- npm install -g i18ntk
243
-
244
- # Commands available system-wide
245
- i18ntk-manage
246
- i18ntk-init
247
- i18ntk-analyze
248
- ```
249
-
250
- ### Local Installation
251
- ```bash
252
- # Users install locally
253
- npm install i18ntk --save-dev
254
-
255
- # Use with npx
256
- npx i18ntk-manage
257
- npx i18ntk-init
258
-
259
- # Or with npm scripts
260
- npm run i18ntk
261
- ```
262
-
263
- ## 📈 Post-Publishing Tasks
264
-
265
- ### 1. Update Documentation
266
- - [ ] Update GitHub README with NPM installation instructions
267
- - [ ] Create GitHub release with release notes
268
- - [ ] Update documentation links
269
- - [ ] Announce on relevant platforms
270
-
271
- ### 2. Monitor Package
272
- ```bash
273
- # Check download statistics
274
- npm view i18ntk
275
-
276
- # Monitor for issues
277
- # Check GitHub issues
278
- # Monitor NPM package page
279
- ```
280
-
281
- ### 3. Version Tagging
282
- ```bash
283
- # Tag the release in Git
284
- git tag v1.0.0
285
- git push origin v1.0.0
286
-
287
- # Create GitHub release
288
- # Use RELEASE_NOTES_v1.0.0.md content
289
- ```
290
-
291
- ## 🔄 Update Process
292
-
293
- ### For Future Releases
294
-
295
- 1. **Update version in package.json**
296
- 2. **Update CHANGELOG.md**
297
- 3. **Update README.md**
298
- 4. **Run tests: `npm test`**
299
- 5. **Verify package: `npm run verify-package`**
300
- 6. **Publish: `npm publish`**
301
- 7. **Tag release in Git**
302
- 8. **Update documentation**
303
-
304
- ### Semantic Versioning
305
-
306
- - **Patch (1.6.3 → 1.6.4):** Bug fixes, documentation updates
307
- - **Minor (1.6.3 → 1.7.0):** New features, non-breaking changes
308
- - **Major (1.6.3 → 2.0.0):** Breaking changes
309
-
310
- ## 🛡️ Security Considerations
311
-
312
- ### NPM Security
313
- ```bash
314
- # Enable 2FA for NPM account
315
- npm profile enable-2fa auth-and-writes
316
-
317
- # Check for vulnerabilities
318
- npm audit
319
-
320
- # Fix vulnerabilities
321
- npm audit fix
322
- ```
323
-
324
- ### Package Security
325
- - No sensitive data in package
326
- - Secure dependency management
327
- - Regular security updates
328
- - Proper access controls
329
-
330
- ## 📊 Success Metrics
331
-
332
- ### Installation Success
333
- - [ ] Package installs without errors
334
- - [ ] All commands work correctly
335
- - [ ] Tests pass after installation
336
- - [ ] Documentation is accessible
337
-
338
- ### User Experience
339
- - [ ] Clear installation instructions
340
- - [ ] Comprehensive documentation
341
- - [ ] Working examples
342
- - [ ] Responsive support
343
-
344
- ### Technical Metrics
345
- - [ ] Package size optimized
346
- - [ ] Fast installation
347
- - [ ] Cross-platform compatibility
348
- - [ ] Dependency management
349
-
350
- ## 🆘 Troubleshooting
351
-
352
- ### Common Publishing Issues
353
-
354
- #### Authentication Errors
355
- ```bash
356
- # Re-login to NPM
357
- npm logout
358
- npm login
359
- ```
360
-
361
- #### Version Conflicts
362
- ```bash
363
- # Check existing versions
364
- npm view i18ntk versions --json
365
-
366
- # Increment version if needed
367
- npm version patch
368
- ```
369
-
370
- #### Package Size Issues
371
- ```bash
372
- # Check what's being included
373
- npm pack --dry-run
374
-
375
- # Update .npmignore if needed
376
- ```
377
-
378
- ### Post-Publishing Issues
379
-
380
- #### Installation Problems
381
- - Check Node.js version compatibility
382
- - Verify package.json bin paths
383
- - Test on different platforms
384
-
385
- #### Command Not Found
386
- - Verify global installation
387
- - Check PATH configuration
388
- - Test binary permissions
389
-
390
- ## 📞 Support & Maintenance
391
-
392
- ### Ongoing Maintenance
393
- - Monitor GitHub issues
394
- - Respond to user questions
395
- - Regular security updates
396
- - Performance improvements
397
-
398
- ### Community Engagement
399
- - Respond to issues promptly
400
- - Accept quality pull requests
401
- - Maintain documentation
402
- - Provide examples and tutorials
403
-
404
- ---
405
-
406
- ## 🎉 Ready for Release!
407
-
408
- **Version 1.0.0 is the first stable release, fully prepared for NPM/Yarn distribution.**
409
-
410
- ### Final Checklist
411
- - [x] All tests passing (25/25)
412
- - [x] Documentation complete and updated
413
- - [x] Package optimized for distribution
414
- - [x] Security considerations addressed
415
- - [x] Installation guide created
416
- - [x] Release notes prepared
417
- - [x] Quality assurance completed
418
-
419
- **Execute the publishing process when ready!** 🚀
420
-
421
- ---
422
-
423
- **Maintainer:** Vladimir Noskov
424
- **Email:** vladnoskv@gmail.com
425
- **GitHub:** [@vladnoskv](https://github.com/vladnoskv)
426
- **Package:** [i18ntk on NPM](https://www.npmjs.com/package/i18ntk)
@@ -1,30 +0,0 @@
1
- # Debug Tools
2
-
3
- This folder contains debugging tools and utilities for the i18nTK project.
4
-
5
- ## Debug Scripts
6
-
7
- - **debugger.js** - Main debugging script for identifying issues
8
- - **config-validator.js** - Configuration validation debugger
9
- - **translation-debugger.js** - Translation-specific debugging tools
10
- - **performance-profiler.js** - Performance analysis and profiling
11
-
12
- ## Usage
13
-
14
- ```bash
15
- # Run main debugger
16
- node dev/debug/debugger.js
17
-
18
- # Validate configuration
19
- node dev/debug/config-validator.js
20
-
21
- # Debug translations
22
- node dev/debug/translation-debugger.js
23
-
24
- # Profile performance
25
- node dev/debug/performance-profiler.js
26
- ```
27
-
28
- ## Debug Output
29
-
30
- Debug logs and reports are saved to `dev/debug/logs/` with timestamps.
@@ -1,152 +0,0 @@
1
- # i18ntk Debug Tools
2
-
3
- **Version:** 1.4.0 (04/08/2025)
4
-
5
- ## Overview
6
-
7
- Comprehensive debugging toolkit for i18ntk - diagnose issues, analyze performance, and maintain translation quality.
8
-
9
- ## Core Debug Tools
10
-
11
- ### System Debugger
12
- ```bash
13
- npm run i18ntk:debug # Full system debug
14
- npm run i18ntk:debug -- --verbose # Verbose output
15
- npm run i18ntk:debug -- --performance # Performance analysis
16
- ```
17
-
18
- **Features:**
19
- - System diagnostics
20
- - Performance analysis
21
- - Memory usage monitoring
22
- - Configuration validation
23
- - Dependency checking
24
-
25
- ### Console Tools
26
-
27
- #### Key Validation
28
- ```bash
29
- node dev/debug/console-key-checker.js
30
- ```
31
-
32
- **Features:**
33
- - Console message key validation
34
- - Missing key detection
35
- - Unused key identification
36
- - Format validation
37
-
38
- #### Translation Manager
39
- ```bash
40
- node dev/debug/console-translations.js
41
- ```
42
-
43
- **Features:**
44
- - Dynamic console message translation
45
- - Language switching
46
- - Message formatting
47
- - Fallback handling
48
-
49
- #### Complete Coverage
50
- ```bash
51
- node dev/debug/complete-console-translations.js
52
- ```
53
-
54
- **Features:**
55
- - Scan console messages
56
- - Identify untranslated messages
57
- - Auto-complete translations
58
- - Batch processing
59
-
60
- ### Code Transformation
61
-
62
- #### Replace Hardcoded Messages
63
- ```bash
64
- node dev/debug/replace-hardcoded-console.js
65
- ```
66
-
67
- **Transforms:**
68
- ```javascript
69
- // Before
70
- console.log('Analysis complete');
71
-
72
- // After
73
- console.log(this.ui.t('analysis.complete'));
74
- ```
75
-
76
- ### Data Export
77
-
78
- #### Export Missing Keys
79
- ```bash
80
- node dev/debug/export-missing-keys.js --format=csv --output=missing-keys.csv
81
- node dev/debug/export-missing-keys.js --format=json --language=es
82
- node dev/debug/export-missing-keys.js --format=xliff --all-languages
83
- ```
84
-
85
- **Supported formats:**
86
- - JSON
87
- - CSV
88
- - XLSX
89
- - XLIFF
90
- - PO files
91
-
92
- ## Usage Examples
93
-
94
- ### Basic Debugging
95
- ```javascript
96
- const { I18nManager } = require('i18n-management-toolkit');
97
-
98
- const manager = new I18nManager();
99
- const debug = await manager.debug();
100
- console.log(debug.summary);
101
- ```
102
-
103
- ### Performance Analysis
104
- ```javascript
105
- const analyzer = new PerformanceAnalyzer();
106
- const metrics = await analyzer.analyze();
107
- console.log(`Memory: ${metrics.memoryUsage}MB`);
108
- console.log(`Time: ${metrics.analysisTime}ms`);
109
- ```
110
-
111
- ### Key Validation
112
- ```javascript
113
- const checker = new ConsoleKeyChecker();
114
- const results = await checker.validateConsoleKeys();
115
- console.log(`Missing: ${results.missing.length}`);
116
- console.log(`Unused: ${results.unused.length}`);
117
- ```
118
-
119
- ## Quick Commands
120
-
121
- | Command | Purpose |
122
- |---------|---------|
123
- | `npm run i18ntk:debug` | Full system diagnostics |
124
- | `node dev/debug/console-key-checker.js` | Validate console keys |
125
- | `node dev/debug/complete-console-translations.js` | Ensure 100% coverage |
126
- | `node dev/debug/export-missing-keys.js --format=csv` | Export missing keys |
127
-
128
- ## Output Examples
129
-
130
- ### Debug Report
131
- ```
132
- 🔍 i18ntk Debug Analysis
133
- ========================
134
- ✅ Configuration: Valid
135
- ✅ Dependencies: All installed
136
- ⚠️ Memory Usage: 85%
137
- ❌ Missing Keys: 15 found
138
-
139
- 📊 Performance
140
- - Startup: 1.2s
141
- - Analysis: 3.4s
142
- - Memory: 156MB
143
- ```
144
-
145
- ### Key Validation
146
- ```
147
- 🔍 Scanning console messages...
148
- 📁 Found 156 console messages
149
- ✅ Translated: 145
150
- ❌ Missing: 11
151
- 🔧 Auto-completed: 11
152
- ```