i18ntk 1.1.5 → 1.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/CHANGELOG.md +33 -4
- package/README.md +17 -232
- package/main/i18ntk-manage.js +9 -53
- package/package.json +9 -6
- package/ui-locales/de/menu.json +1 -1
- package/ui-locales/es/menu.json +1 -1
- package/ui-locales/fr/menu.json +1 -1
- package/ui-locales/ja/menu.json +1 -1
- package/ui-locales/ru/menu.json +1 -1
- package/ui-locales/zh/menu.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to the I18N Management Toolkit are documented here. This project follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
4
4
|
|
|
5
|
-
**Current Version:** 1.
|
|
5
|
+
**Current Version:** 1.2.0 (2025-08-02) - **UI SIMPLIFICATION & ORGANIZATION RELEASE** 🧹
|
|
6
|
+
|
|
7
|
+
## [1.2.0] - 2025-08-02
|
|
8
|
+
|
|
9
|
+
### 🧹 Code Cleanup & Simplification
|
|
10
|
+
- **Removed**: UI language switching option (option 10) from main menu to focus on English core functionality
|
|
11
|
+
- **Updated**: Menu numbering adjusted to reflect removal of option 10 (Settings now option 10, Help option 11, Debug option 12)
|
|
12
|
+
- **Simplified**: User interface now defaults to English only for improved stability
|
|
13
|
+
- **Enhanced**: Project organization with centralized reports in `i18ntk-reports/` directory
|
|
14
|
+
- **Enhanced**: Configuration files now organized in `settings/` directory
|
|
15
|
+
|
|
16
|
+
### 🌐 Translation Updates
|
|
17
|
+
- **Added**: "Coming Soon" messages to German, Spanish, French, Russian, Japanese, and Chinese locale files for language switching feature
|
|
18
|
+
- **Status**: All non-English locales updated to indicate language switching will be available in next update
|
|
19
|
+
- **Focus**: English-only interface for v1.2.0 to ensure core functionality stability
|
|
20
|
+
|
|
21
|
+
### 📊 Project Organization
|
|
22
|
+
- **Centralized**: All reports now saved to `i18ntk-reports/` directory for better file management
|
|
23
|
+
- **Organized**: Configuration files moved to `settings/` directory for cleaner project structure
|
|
24
|
+
- **Cleaned**: Removed duplicate configuration files and streamlined project layout
|
|
25
|
+
|
|
26
|
+
### 🔄 Version Updates
|
|
27
|
+
- **Bumped**: Package version to 1.2.0 with breaking change notice for menu option removal
|
|
28
|
+
- **Updated**: All documentation to reflect new project organization and version changes
|
|
29
|
+
- **Enhanced**: Version info with new features and breaking changes documentation
|
|
30
|
+
|
|
31
|
+
### 🛡️ Stability Improvements
|
|
32
|
+
- **Fixed**: Menu option handling after removal of language switching
|
|
33
|
+
- **Enhanced**: Non-interactive mode menu display updated to match new numbering
|
|
34
|
+
- **Improved**: Overall system stability by reducing complexity
|
|
6
35
|
|
|
7
36
|
## [1.1.5] - 2025-08-02
|
|
8
37
|
|
|
@@ -32,7 +61,7 @@ All notable changes to the I18N Management Toolkit are documented here. This pro
|
|
|
32
61
|
|
|
33
62
|
## [1.1.4] - 2025-08-01
|
|
34
63
|
|
|
35
|
-
**⚠️ DEPRECATED:** This version is deprecated. Please upgrade to v1.
|
|
64
|
+
**⚠️ DEPRECATED:** This version is deprecated. Please upgrade to v1.2.0 for critical bug fixes and stability improvements.
|
|
36
65
|
|
|
37
66
|
### 🌍 Core Plugin Functionality - **COMPLETE**
|
|
38
67
|
- **Achieved**: All core functionality now works without issues
|
|
@@ -67,7 +96,7 @@ All notable changes to the I18N Management Toolkit are documented here. This pro
|
|
|
67
96
|
|
|
68
97
|
## [1.1.3] - 2025-07-29
|
|
69
98
|
|
|
70
|
-
**⚠️ DEPRECATED:** This version is deprecated. Please upgrade to v1.
|
|
99
|
+
**⚠️ DEPRECATED:** This version is deprecated. Please upgrade to v1.2.0 for critical bug fixes and stability improvements.
|
|
71
100
|
|
|
72
101
|
### 🌐 Translation System Enhancement
|
|
73
102
|
- **Added**: Translation keys for workflow step names in `autorun.json` files across all supported languages
|
|
@@ -86,7 +115,7 @@ All notable changes to the I18N Management Toolkit are documented here. This pro
|
|
|
86
115
|
|
|
87
116
|
## [1.1.2] - 2025-07-27
|
|
88
117
|
|
|
89
|
-
**⚠️ DEPRECATED:** This version is deprecated. Please upgrade to v1.
|
|
118
|
+
**⚠️ DEPRECATED:** This version is deprecated. Please upgrade to v1.2.0 for critical bug fixes and stability improvements.
|
|
90
119
|
|
|
91
120
|
### 🚀 Enhanced CLI Experience
|
|
92
121
|
- **Improved**: Enabled direct execution of commands (e.g., `i18ntk usage`, `i18ntk workflow`) from the command line, bypassing the interactive menu for specified commands.
|
package/README.md
CHANGED
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
# i18ntk - Enterprise i18n Management Toolkit
|
|
2
2
|
|
|
3
|
-
**Version:** 1.
|
|
3
|
+
**Version:** 1.2 – **PRODUCTION READY** with enhanced documentation and npm metadata cleanup! 🌍
|
|
4
4
|
|
|
5
|
-
**⚠️ Important Notice:** All previous versions (< 1.
|
|
5
|
+
**⚠️ Important Notice:** All previous versions (< 1.2) are now deprecated due to critical bugs and issues. Please upgrade to v1.1.5 for the most stable experience. We recommend backing up your project before upgrading.
|
|
6
6
|
|
|
7
7
|
**🎉 Thank You:** 200+ downloads in the first week! Thank you for your support and patience as we resolved the functional issues. My First Published Project.
|
|
8
8
|
|
|
9
|
-
[](https://badge.fury.io/js/i18ntk)
|
|
10
|
+
[](https://www.npmjs.com/package/i18ntk)
|
|
10
11
|
[](https://opensource.org/licenses/MIT)
|
|
11
12
|
[](https://nodejs.org/)
|
|
12
13
|
|
|
13
|
-
**i18ntk** (i18n Toolkit) is a comprehensive,
|
|
14
|
+
**i18ntk** (i18n Toolkit) is a comprehensive, internationalization management toolkit for JavaScript/TypeScript projects. It provides a complete CLI suite with multi-language support and advanced analysis capabilities for managing translations efficiently.
|
|
14
15
|
|
|
15
16
|
## ⚠️ Important Disclaimer
|
|
16
17
|
|
|
17
|
-
**This is
|
|
18
|
+
**Important: This is an independent, community-driven toolkit** - not affiliated with any official i18n organization or team. Originally developed as a personal solution for translation management, i18ntk has evolved into a feature-rich internationalization toolkit available to the broader development community. The toolkit is designed to be framework-agnostic and highly adaptable:
|
|
19
|
+
|
|
20
|
+
- Works with any translation file format configured in the settings
|
|
21
|
+
- Operates independently (no i18n framework required)
|
|
22
|
+
- Provides extensive customization options
|
|
23
|
+
- Easily extensible through code modifications or AI-assisted configuration
|
|
24
|
+
- Flexible enough to accommodate diverse project requirements
|
|
25
|
+
|
|
26
|
+
While maintaining its independence, i18ntk strives to follow i18n best practices and standards to ensure compatibility with existing workflows. Although we test thoroughly, we cannot guarantee 100% compatibility with all i18n frameworks or systems. Users are encouraged to test i18ntk with their specific setup and adjust settings as needed or find an alternative solution.
|
|
18
27
|
|
|
19
28
|
## 🚀 Quick Start
|
|
20
29
|
|
|
@@ -135,156 +144,6 @@ npx i18ntk -v # 📋 Show detailed version information (short flag)
|
|
|
135
144
|
- **💾 Backup System**: Automatic configuration backups
|
|
136
145
|
- **⚡ Reliability**: Advanced error handling and graceful degradation for non-interactive environments
|
|
137
146
|
|
|
138
|
-
## 📁 Project Structure
|
|
139
|
-
|
|
140
|
-
```
|
|
141
|
-
i18n-management-toolkit/
|
|
142
|
-
├── main/ # Core i18ntk scripts
|
|
143
|
-
│ ├── i18ntk-analyze.js # Translation analysis
|
|
144
|
-
│ ├── i18ntk-autorun.js # Automated workflow execution
|
|
145
|
-
│ ├── i18ntk-complete.js # Complete missing translations
|
|
146
|
-
│ ├── i18ntk-init.js # Initialize i18n setup
|
|
147
|
-
│ ├── i18ntk-manage.js # Main management interface
|
|
148
|
-
│ ├── i18ntk-sizing.js # Generate sizing reports
|
|
149
|
-
│ ├── i18ntk-summary.js # Generate summary reports
|
|
150
|
-
│ ├── i18ntk-usage.js # Analyze translation usage
|
|
151
|
-
│ ├── i18ntk-validate.js # Validate translations
|
|
152
|
-
│ └── i18ntk-ui.js # UI internationalization
|
|
153
|
-
├── utils/ # Utility scripts and helpers
|
|
154
|
-
│ ├── admin-auth.js # Admin authentication
|
|
155
|
-
│ ├── admin-cli.js # Admin command-line interface
|
|
156
|
-
│ ├── admin-pin.js # PIN management
|
|
157
|
-
│ ├── i18n-helper.js # i18n utility functions
|
|
158
|
-
│ ├── security.js # Security utilities
|
|
159
|
-
│ ├── detect-language-mismatches.js # Language validation
|
|
160
|
-
│ ├── maintain-language-purity.js # Language purity tools
|
|
161
|
-
│ ├── native-translations.js # Native translation helpers
|
|
162
|
-
│ ├── translate-mismatches.js # Translation mismatch tools
|
|
163
|
-
│ ├── validate-language-purity.js # Language purity validation
|
|
164
|
-
│ ├── test-complete-system.js # System testing
|
|
165
|
-
│ └── test-console-i18n.js # Console i18n testing
|
|
166
|
-
├── dev/ # Development and debugging tools
|
|
167
|
-
│ ├── debug/ # Debug utilities and analyzers
|
|
168
|
-
│ │ ├── debugger.js # Main debugger
|
|
169
|
-
│ │ ├── console-translations.js # Console translation tools
|
|
170
|
-
│ │ ├── complete-console-translations.js # Console completion
|
|
171
|
-
│ │ ├── console-key-checker.js # Console key validation
|
|
172
|
-
│ │ ├── export-missing-keys.js # Missing key export
|
|
173
|
-
│ │ ├── find-extra-keys.js # Extra key detection
|
|
174
|
-
│ │ ├── normalize-locales.js # Locale normalization
|
|
175
|
-
│ │ ├── refactor-locales.js # Locale refactoring
|
|
176
|
-
│ │ ├── reorder-locales.js # Locale reordering
|
|
177
|
-
│ │ └── replace-hardcoded-console.js # Console replacement
|
|
178
|
-
│ └── tests/ # Test suite
|
|
179
|
-
│ ├── test-complete-system.js # Complete system tests
|
|
180
|
-
│ ├── test-console-i18n.js # Console i18n tests
|
|
181
|
-
│ ├── test-features.js # Feature tests
|
|
182
|
-
│ └── test-report.json # Test reports
|
|
183
|
-
├── docs/ # Comprehensive documentation
|
|
184
|
-
│ ├── api/ # API documentation
|
|
185
|
-
│ │ ├── API_REFERENCE.md # Complete API reference
|
|
186
|
-
│ │ ├── COMPONENTS.md # Component documentation
|
|
187
|
-
│ │ ├── CONFIGURATION.md # Configuration guide
|
|
188
|
-
│ │ └── NPM_PUBLISHING_GUIDE.md # NPM publishing guide
|
|
189
|
-
│ ├── debug/ # Debug documentation
|
|
190
|
-
│ │ ├── DEBUG_README.md # Debug overview
|
|
191
|
-
│ │ └── DEBUG_TOOLS.md # Debug tools guide
|
|
192
|
-
│ ├── development/ # Development documentation
|
|
193
|
-
│ │ ├── AGENTS.md # AI agent guidelines
|
|
194
|
-
│ │ ├── DEVELOPMENT_RULES.md # Development rules
|
|
195
|
-
│ │ └── DEV_README.md # Development overview
|
|
196
|
-
│ ├── release-notes/ # Release documentation
|
|
197
|
-
│ │ ├── RELEASE_NOTES_v1.6.0.md # v1.6.0 release notes
|
|
198
|
-
│ │ ├── RELEASE_NOTES_v1.6.1.md # v1.6.1 release notes
|
|
199
|
-
│ │ └── RELEASE_NOTES_v1.0.0.md # v1.0.0 release notes
|
|
200
|
-
│ ├── reports/ # Report documentation
|
|
201
|
-
│ │ ├── ANALYSIS_README.md # Analysis reports
|
|
202
|
-
│ │ ├── SIZING_README.md # Sizing reports
|
|
203
|
-
│ │ ├── SUMMARY_README.md # Summary reports
|
|
204
|
-
│ │ ├── USAGE_README.md # Usage reports
|
|
205
|
-
│ │ └── VALIDATION_README.md # Validation reports
|
|
206
|
-
│ ├── INSTALLATION.md # Installation guide
|
|
207
|
-
│ ├── README.md # Documentation overview
|
|
208
|
-
│ └── TODO_ROADMAP.md # Future roadmap
|
|
209
|
-
├── scripts/ # Utility scripts
|
|
210
|
-
│ ├── fix-missing-translation-keys.js # Translation key fixes
|
|
211
|
-
│ └── verify-package.js # Package verification
|
|
212
|
-
├── settings/ # Configuration management
|
|
213
|
-
│ ├── admin-config.json # Admin configuration
|
|
214
|
-
│ ├── i18ntk-config.json # User configuration (main config file)
|
|
215
|
-
│ ├── settings-cli.js # Settings CLI
|
|
216
|
-
│ ├── settings-manager.js # Settings management
|
|
217
|
-
│ └── backups/ # Configuration backups
|
|
218
|
-
├── locales/ # Sample project translation files
|
|
219
|
-
│ ├── en/ # English translations
|
|
220
|
-
│ ├── de/ # German translations
|
|
221
|
-
│ ├── es/ # Spanish translations
|
|
222
|
-
│ ├── fr/ # French translations
|
|
223
|
-
│ └── ru/ # Russian translations
|
|
224
|
-
├── ui-locales/ # Toolkit's UI translations (7 languages)
|
|
225
|
-
│ ├── en.json # English UI
|
|
226
|
-
│ ├── de.json # German UI
|
|
227
|
-
│ ├── es.json # Spanish UI
|
|
228
|
-
│ ├── fr.json # French UI
|
|
229
|
-
│ ├── ja.json # Japanese UI
|
|
230
|
-
│ ├── ru.json # Russian UI
|
|
231
|
-
│ └── zh.json # Chinese UI
|
|
232
|
-
├── i18ntk-reports/ # Generated analysis reports
|
|
233
|
-
│ ├── analysis/ # Translation analysis
|
|
234
|
-
│ ├── validation/ # Validation reports
|
|
235
|
-
│ ├── usage/ # Usage analysis
|
|
236
|
-
│ ├── sizing/ # Sizing reports
|
|
237
|
-
│ ├── summary/ # Summary reports
|
|
238
|
-
│ └── workflow/ # Workflow reports
|
|
239
|
-
├── package.json # NPM package configuration
|
|
240
|
-
├── CHANGELOG.md # Version history
|
|
241
|
-
├── INDEX.md # Documentation index
|
|
242
|
-
└── README.md # This file
|
|
243
|
-
```
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
### 📋 TODO
|
|
247
|
-
|
|
248
|
-
- **🔍 Enhanced Debug Tools**: Expand debugging capabilities with more comprehensive analysis tools
|
|
249
|
-
- **📊 Advanced Reporting**: Improve report generation with more detailed analytics
|
|
250
|
-
- **🚀 Performance Optimization**: Further optimize translation processing for large projects
|
|
251
|
-
- **🌍 Additional Language Support**: Expand UI language support beyond current 6 languages
|
|
252
|
-
- **📝 UI-Locales Structure Refactor (Planned)**: Refactor `ui-locales/*.json` to use a multi-language object format for each key, e.g.:
|
|
253
|
-
|
|
254
|
-
```json
|
|
255
|
-
{
|
|
256
|
-
"analyzeTranslations": {
|
|
257
|
-
"reportTitle": {
|
|
258
|
-
"en": "TRANSLATION ANALYSIS REPORT FOR {language}",
|
|
259
|
-
"de": "ÜBERSETZUNGSANALYSENBERICHT FÜR {language}",
|
|
260
|
-
"fr": "RAPPORT D'ANALYSE DE TRADUCTION POUR {language}",
|
|
261
|
-
"es": "INFORME DE ANÁLISIS DE TRADUCCIÓN PARA {language}",
|
|
262
|
-
"ru": "ОТЧЁТ О АНАЛИЗЕ ПЕРЕВОДА ДЛЯ {language}",
|
|
263
|
-
"ja": "{language} の翻訳分析レポート",
|
|
264
|
-
"zh": "{language} 翻译分析报告"
|
|
265
|
-
},
|
|
266
|
-
"generated": {
|
|
267
|
-
"en": "Generated: {timestamp}",
|
|
268
|
-
"de": "Erstellt: {timestamp}",
|
|
269
|
-
"fr": "Généré : {timestamp}",
|
|
270
|
-
"es": "Generado: {timestamp}",
|
|
271
|
-
"ru": "Сгенерировано: {timestamp}",
|
|
272
|
-
"ja": "生成日時: {timestamp}",
|
|
273
|
-
"zh": "生成时间: {timestamp}"
|
|
274
|
-
},
|
|
275
|
-
"status": {
|
|
276
|
-
"en": "Status: {translated}/{total} translated ({percentage}%)",
|
|
277
|
-
"de": "Status: {translated}/{total} übersetzt ({percentage}%)",
|
|
278
|
-
"fr": "Statut : {translated}/{total} traduit ({percentage}%)",
|
|
279
|
-
"es": "Estado: {translated}/{total} traducido ({percentage}%)",
|
|
280
|
-
"ru": "Статус: переведено {translated}/{total} ({percentage}%)",
|
|
281
|
-
"ja": "状況: {total}中{translated}件翻訳済み ({percentage}%)",
|
|
282
|
-
"zh": "状态:{translated}/{total} 已翻译 ({percentage}%)"
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
```
|
|
287
|
-
|
|
288
147
|
> **📖 For detailed setup and usage instructions, see [Documentation](./docs/README.md)**
|
|
289
148
|
|
|
290
149
|
## 🛠️ Core Commands
|
|
@@ -304,37 +163,8 @@ i18n-management-toolkit/
|
|
|
304
163
|
| `npm run i18ntk:summary` | Generate summary reports | `node main/i18ntk-summary.js` |
|
|
305
164
|
| `npm run i18ntk:debug` | Debug and diagnostics | `node dev/debug/debugger.js` |
|
|
306
165
|
|
|
307
|
-
### Utility Scripts
|
|
308
|
-
|
|
309
|
-
| Script | Description | Usage |
|
|
310
|
-
|--------|-------------|-------|
|
|
311
|
-
| `settings-cli.js` | Configure toolkit settings | `node settings-cli.js` |
|
|
312
|
-
| `utils/admin-cli.js` | Admin operations | `node utils/admin-cli.js` |
|
|
313
|
-
|
|
314
166
|
> **📖 For complete command reference, see [API Documentation](./docs/api/API_REFERENCE.md)**
|
|
315
167
|
|
|
316
|
-
## 🔧 Configuration
|
|
317
|
-
|
|
318
|
-
### User Configuration (`i18ntk-config.json`)
|
|
319
|
-
```json
|
|
320
|
-
{
|
|
321
|
-
"localesPath": "./locales",
|
|
322
|
-
"supportedLanguages": ["en", "es", "fr", "de", "ru"],
|
|
323
|
-
"defaultLanguage": "en",
|
|
324
|
-
"excludePatterns": ["node_modules", ".git"],
|
|
325
|
-
"includePatterns": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"]
|
|
326
|
-
}
|
|
327
|
-
```
|
|
328
|
-
|
|
329
|
-
### Admin Configuration (`admin-config.json`)
|
|
330
|
-
```json
|
|
331
|
-
{
|
|
332
|
-
"adminPasswordHash": "...",
|
|
333
|
-
"securityEnabled": true,
|
|
334
|
-
"backupEnabled": true
|
|
335
|
-
}
|
|
336
|
-
```
|
|
337
|
-
|
|
338
168
|
## 📊 Reports and Analysis
|
|
339
169
|
|
|
340
170
|
The toolkit generates comprehensive reports in the `i18ntk-reports/` directory:
|
|
@@ -351,26 +181,9 @@ The toolkit generates comprehensive reports in the `i18ntk-reports/` directory:
|
|
|
351
181
|
|
|
352
182
|
## 🌍 Supported Languages
|
|
353
183
|
|
|
354
|
-
The toolkit UI supports **7 languages** with
|
|
355
|
-
|
|
356
|
-
| Language | Code | Status | Coverage |
|
|
357
|
-
|----------|------|--------|----------|
|
|
358
|
-
| 🇺🇸 English | `en` | ✅ Complete | 573/573 keys (100%) |
|
|
359
|
-
| 🇩🇪 German | `de` | ✅ Complete | 573/573 keys (100%) |
|
|
360
|
-
| 🇪🇸 Spanish | `es` | ✅ Complete | 573/573 keys (100%) |
|
|
361
|
-
| 🇫🇷 French | `fr` | ✅ Complete | 573/573 keys (100%) |
|
|
362
|
-
| 🇯🇵 Japanese | `ja` | ✅ Complete | 573/573 keys (100%) |
|
|
363
|
-
| 🇷🇺 Russian | `ru` | ✅ Complete | 573/573 keys (100%) |
|
|
364
|
-
| 🇨🇳 Chinese | `zh` | ✅ Complete | 573/573 keys (100%) |
|
|
184
|
+
The toolkit UI supports **7 languages** with partial internationalization:
|
|
365
185
|
|
|
366
|
-
|
|
367
|
-
- 100% console output internationalization
|
|
368
|
-
- Complete UI element translation
|
|
369
|
-
- Dynamic placeholder support (`{language}`, `{fileName}`, etc.)
|
|
370
|
-
- Zero missing or extra translation keys
|
|
371
|
-
- Verified translation patterns across all languages
|
|
372
|
-
|
|
373
|
-
Contributions for additional languages are welcome!
|
|
186
|
+
Requests for additional languages are welcome!
|
|
374
187
|
|
|
375
188
|
## 🧪 Development and Testing
|
|
376
189
|
|
|
@@ -379,36 +192,8 @@ Contributions for additional languages are welcome!
|
|
|
379
192
|
# Main debug interface
|
|
380
193
|
npm run i18ntk:debug
|
|
381
194
|
|
|
382
|
-
# Check console translations
|
|
383
|
-
node dev/debug/console-translations.js
|
|
384
|
-
|
|
385
|
-
# Complete console translations
|
|
386
|
-
node dev/debug/complete-console-translations.js
|
|
387
|
-
|
|
388
|
-
# Replace hardcoded console messages
|
|
389
|
-
node dev/debug/replace-hardcoded-console.js
|
|
390
|
-
```
|
|
391
|
-
|
|
392
|
-
### Testing
|
|
393
|
-
```bash
|
|
394
|
-
# Run complete system test
|
|
395
|
-
node dev/tests/test-complete-system.js
|
|
396
|
-
|
|
397
|
-
# Test console i18n
|
|
398
|
-
node dev/tests/test-console-i18n.js
|
|
399
|
-
|
|
400
|
-
# Test all features
|
|
401
|
-
node dev/tests/test-features.js
|
|
402
|
-
```
|
|
403
|
-
|
|
404
195
|
> **📖 For comprehensive debug tools documentation, see [Debug Tools](./docs/debug/DEBUG_TOOLS.md)**
|
|
405
196
|
|
|
406
|
-
## 🔒 Security Features
|
|
407
|
-
|
|
408
|
-
- Admin authentication for sensitive operations
|
|
409
|
-
- Secure password hashing
|
|
410
|
-
- Configuration backup system
|
|
411
|
-
- Input validation and sanitization
|
|
412
197
|
|
|
413
198
|
## 📝 Best Practices
|
|
414
199
|
|
|
@@ -435,7 +220,7 @@ node dev/tests/test-features.js
|
|
|
435
220
|
|
|
436
221
|
---
|
|
437
222
|
|
|
438
|
-
**Version:** 1.
|
|
223
|
+
**Version:** 1.2.0 – Enhanced CLI experience with proper version command and improved documentation! 🚀
|
|
439
224
|
## 📄 License
|
|
440
225
|
|
|
441
226
|
This project is licensed under the MIT License - see the `LICENSE` file for details.
|
package/main/i18ntk-manage.js
CHANGED
|
@@ -459,10 +459,9 @@ class I18nManager {
|
|
|
459
459
|
console.log(`7. ${this.ui.t('menu.options.workflow')}`);
|
|
460
460
|
console.log(`8. ${this.ui.t('menu.options.status')}`);
|
|
461
461
|
console.log(`9. ${this.ui.t('menu.options.delete')}`);
|
|
462
|
-
console.log(`10. ${this.ui.t('menu.options.
|
|
463
|
-
console.log(`11. ${this.ui.t('menu.options.
|
|
464
|
-
console.log(`12. ${this.ui.t('menu.options.
|
|
465
|
-
console.log(`13. ${this.ui.t('menu.options.debug')}`);
|
|
462
|
+
console.log(`10. ${this.ui.t('menu.options.settings')}`);
|
|
463
|
+
console.log(`11. ${this.ui.t('menu.options.help')}`);
|
|
464
|
+
console.log(`12. ${this.ui.t('menu.options.debug')}`);
|
|
466
465
|
console.log(`0. ${this.ui.t('menu.options.exit')}`);
|
|
467
466
|
console.log('\n' + this.ui.t('menu.nonInteractiveModeWarning'));
|
|
468
467
|
console.log(this.ui.t('menu.useDirectExecution'));
|
|
@@ -483,10 +482,9 @@ class I18nManager {
|
|
|
483
482
|
console.log(`7. ${this.ui.t('menu.options.workflow')}`);
|
|
484
483
|
console.log(`8. ${this.ui.t('menu.options.status')}`);
|
|
485
484
|
console.log(`9. ${this.ui.t('menu.options.delete')}`);
|
|
486
|
-
console.log(`10. ${this.ui.t('menu.options.
|
|
487
|
-
console.log(`11. ${this.ui.t('menu.options.
|
|
488
|
-
console.log(`12. ${this.ui.t('menu.options.
|
|
489
|
-
console.log(`13. ${this.ui.t('menu.options.debug')}`);
|
|
485
|
+
console.log(`10. ${this.ui.t('menu.options.settings')}`);
|
|
486
|
+
console.log(`11. ${this.ui.t('menu.options.help')}`);
|
|
487
|
+
console.log(`12. ${this.ui.t('menu.options.debug')}`);
|
|
490
488
|
console.log(`0. ${this.ui.t('menu.options.exit')}`);
|
|
491
489
|
|
|
492
490
|
const choice = await this.prompt('\n' + this.ui.t('menu.selectOptionPrompt'));
|
|
@@ -556,17 +554,14 @@ class I18nManager {
|
|
|
556
554
|
await this.deleteReports();
|
|
557
555
|
break;
|
|
558
556
|
case '10':
|
|
559
|
-
await this.changeLanguage();
|
|
560
|
-
break;
|
|
561
|
-
case '11':
|
|
562
557
|
await this.showSettingsMenu();
|
|
563
558
|
break;
|
|
564
|
-
case '
|
|
559
|
+
case '11':
|
|
565
560
|
this.showHelp();
|
|
566
561
|
await this.prompt(this.ui.t('menu.returnToMainMenu'));
|
|
567
562
|
await this.showInteractiveMenu();
|
|
568
563
|
break;
|
|
569
|
-
case '
|
|
564
|
+
case '12':
|
|
570
565
|
await this.showDebugMenu();
|
|
571
566
|
break;
|
|
572
567
|
case '0':
|
|
@@ -888,46 +883,7 @@ class I18nManager {
|
|
|
888
883
|
await this.showInteractiveMenu();
|
|
889
884
|
}
|
|
890
885
|
|
|
891
|
-
|
|
892
|
-
async changeLanguage() {
|
|
893
|
-
console.log(this.ui.t('language.changeTitle'));
|
|
894
|
-
console.log('=' .repeat(50));
|
|
895
|
-
|
|
896
|
-
const languages = {
|
|
897
|
-
'en': '🇺🇸 English',
|
|
898
|
-
'de': '🇩🇪 Deutsch',
|
|
899
|
-
'es': '🇪🇸 Español',
|
|
900
|
-
'fr': '🇫🇷 Français',
|
|
901
|
-
'ru': '🇷🇺 Русский',
|
|
902
|
-
'ja': '🇯🇵 日本語',
|
|
903
|
-
'zh': '🇨🇳 中文'
|
|
904
|
-
};
|
|
905
|
-
|
|
906
|
-
console.log(this.ui.t('language.available'));
|
|
907
|
-
Object.entries(languages).forEach(([code, name], index) => {
|
|
908
|
-
console.log(` ${index + 1}. ${code} - ${name}`);
|
|
909
|
-
});
|
|
910
|
-
|
|
911
|
-
const choice = await this.prompt('\nSelect language (1-7): ');
|
|
912
|
-
const languageCodes = Object.keys(languages);
|
|
913
|
-
const selectedIndex = parseInt(choice) - 1;
|
|
914
|
-
|
|
915
|
-
if (selectedIndex >= 0 && selectedIndex < languageCodes.length) {
|
|
916
|
-
const selectedLang = languageCodes[selectedIndex];
|
|
917
|
-
this.ui.loadLanguage(selectedLang);
|
|
918
|
-
|
|
919
|
-
// Save to settings
|
|
920
|
-
const settingsManager = require('../settings/settings-manager');
|
|
921
|
-
settingsManager.setLanguage(selectedLang);
|
|
922
|
-
|
|
923
|
-
console.log(`✅ Language changed to ${languages[selectedLang]}`);
|
|
924
|
-
} else {
|
|
925
|
-
console.log(this.ui.t('language.invalidSelection'));
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
await this.prompt(this.ui.t('menu.pressEnterToContinue'));
|
|
929
|
-
await this.showInteractiveMenu();
|
|
930
|
-
}
|
|
886
|
+
|
|
931
887
|
|
|
932
888
|
prompt(question) {
|
|
933
889
|
return new Promise((resolve) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "i18ntk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "i18ntk (i18n Toolkit) - A comprehensive, enterprise-grade internationalization (i18n) management toolkit for JavaScript/TypeScript projects with advanced analysis, validation, and automation features",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"i18n",
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
},
|
|
125
125
|
"preferGlobal": true,
|
|
126
126
|
"versionInfo": {
|
|
127
|
-
"version": "1.
|
|
127
|
+
"version": "1.2.0",
|
|
128
128
|
"releaseDate": "02/08/2025",
|
|
129
129
|
"lastUpdated": "02/08/2025",
|
|
130
130
|
"maintainer": "Vladimir Noskov",
|
|
@@ -136,11 +136,14 @@
|
|
|
136
136
|
"🐛 Marked all previous versions as deprecated due to bugs",
|
|
137
137
|
"🎉 Celebrated 200+ downloads milestone",
|
|
138
138
|
"🔗 Fixed repository URLs to point to correct GitHub location",
|
|
139
|
-
"📋 Updated all version references to 1.
|
|
139
|
+
"📋 Updated all version references to 1.2.0",
|
|
140
|
+
"🌐 Temporarily disabled UI language switching to focus on English core functionality",
|
|
141
|
+
"📊 Centralized reports in i18ntk-reports/ directory",
|
|
142
|
+
"⚙️ Organized configuration files in settings/ directory"
|
|
140
143
|
],
|
|
141
|
-
"breakingChanges": [],
|
|
142
|
-
"deprecations": ["<1.
|
|
143
|
-
"nextVersion": "1.1
|
|
144
|
+
"breakingChanges": ["Removed option 10 (Change UI language) from main menu"],
|
|
145
|
+
"deprecations": ["<1.2.0", "1.0.x", "1.1.x"],
|
|
146
|
+
"nextVersion": "1.2.1",
|
|
144
147
|
"supportedNodeVersions": ">=16.0.0",
|
|
145
148
|
"supportedFrameworks": {
|
|
146
149
|
"react-i18next": ">=11.0.0",
|
package/ui-locales/de/menu.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"workflow": "🔄 Run full workflow",
|
|
12
12
|
"status": "📋 Show project status",
|
|
13
13
|
"delete": "🗑️ Delete all reports",
|
|
14
|
-
"language": "🌍 Change UI language",
|
|
14
|
+
"language": "🌍 Change UI language (Coming Soon - English Only)",
|
|
15
15
|
"settings": "⚙️ Settings",
|
|
16
16
|
"help": "❓ Help",
|
|
17
17
|
"debug": "🔧 Debug Tools",
|
package/ui-locales/es/menu.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"workflow": "⚠️ TRANSLATION NEEDED ⚠️",
|
|
12
12
|
"status": "⚠️ TRANSLATION NEEDED ⚠️",
|
|
13
13
|
"delete": "⚠️ TRANSLATION NEEDED ⚠️",
|
|
14
|
-
"language": "
|
|
14
|
+
"language": "🌍 Cambiar idioma de interfaz (Próximamente - Solo Inglés)",
|
|
15
15
|
"settings": "⚠️ TRANSLATION NEEDED ⚠️",
|
|
16
16
|
"help": "⚠️ TRANSLATION NEEDED ⚠️",
|
|
17
17
|
"debug": "⚠️ TRANSLATION NEEDED ⚠️",
|
package/ui-locales/fr/menu.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"workflow": "⚠️ TRANSLATION NEEDED ⚠️",
|
|
12
12
|
"status": "⚠️ TRANSLATION NEEDED ⚠️",
|
|
13
13
|
"delete": "⚠️ TRANSLATION NEEDED ⚠️",
|
|
14
|
-
"language": "
|
|
14
|
+
"language": "🌍 Changer la langue de l'interface (Bientôt disponible - Anglais uniquement)",
|
|
15
15
|
"settings": "⚠️ TRANSLATION NEEDED ⚠️",
|
|
16
16
|
"help": "⚠️ TRANSLATION NEEDED ⚠️",
|
|
17
17
|
"debug": "⚠️ TRANSLATION NEEDED ⚠️",
|
package/ui-locales/ja/menu.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"workflow": "⚠️ TRANSLATION NEEDED ⚠️",
|
|
12
12
|
"status": "⚠️ TRANSLATION NEEDED ⚠️",
|
|
13
13
|
"delete": "⚠️ TRANSLATION NEEDED ⚠️",
|
|
14
|
-
"language": "
|
|
14
|
+
"language": "🌍 UI言語を変更 (近日公開 - 英語のみ)",
|
|
15
15
|
"settings": "⚠️ TRANSLATION NEEDED ⚠️",
|
|
16
16
|
"help": "⚠️ TRANSLATION NEEDED ⚠️",
|
|
17
17
|
"debug": "⚠️ TRANSLATION NEEDED ⚠️",
|
package/ui-locales/ru/menu.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"workflow": "🔄 Запустить полный рабочий процесс",
|
|
12
12
|
"status": "📋 Показать статус проекта",
|
|
13
13
|
"delete": "🗑️ Удалить все отчеты",
|
|
14
|
-
"language": "🌍 Изменить язык интерфейса",
|
|
14
|
+
"language": "🌍 Изменить язык интерфейса (Скоро будет доступно - Только английский)",
|
|
15
15
|
"settings": "⚙️ Настройки",
|
|
16
16
|
"help": "❓ Помощь",
|
|
17
17
|
"debug": "🔧 Инструменты отладки",
|