i18ntk 1.2.1 โ 1.2.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.
package/CHANGELOG.md
CHANGED
|
@@ -2,10 +2,26 @@
|
|
|
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.2.
|
|
5
|
+
**Current Version:** 1.2.2 (2025-08-02) - **CRITICAL BUG FIX FOR CUSTOM LOCALE SUPPORT** ๐จ
|
|
6
|
+
|
|
7
|
+
## [1.2.2] - 2025-08-02
|
|
8
|
+
|
|
9
|
+
### ๐จ Critical Bug Fix
|
|
10
|
+
- **Fixed**: Resolved `settingsManager.setDirectories is not a function` error when adding custom locale support
|
|
11
|
+
- **Fixed**: Corrected settings management to use proper `getSettings()` and `saveSettings()` methods instead of non-existent `setDirectories()`
|
|
12
|
+
- **Enhanced**: Improved stability when configuring custom translation directories
|
|
13
|
+
- **Fixed**: Directory configuration now properly persists across sessions
|
|
14
|
+
|
|
15
|
+
### ๐ง Technical Details
|
|
16
|
+
- **Issue**: Version 1.2.1 introduced a critical bug in custom directory configuration
|
|
17
|
+
- **Root Cause**: Invalid method call to non-existent `settingsManager.setDirectories()` function
|
|
18
|
+
- **Resolution**: Updated to use existing `settingsManager.getSettings()` and `settingsManager.saveSettings()` methods
|
|
19
|
+
- **Impact**: All custom directory configuration features now work correctly
|
|
6
20
|
|
|
7
21
|
## [1.2.1] - 2025-08-02
|
|
8
22
|
|
|
23
|
+
**โ ๏ธ DEPRECATED:** This version contains a critical bug affecting custom locale directory configuration. Please upgrade to v1.2.2 immediately.
|
|
24
|
+
|
|
9
25
|
### ๐ฏ Directory Path Configuration Fixes
|
|
10
26
|
- **Fixed**: Scripts now correctly respect directory settings from configuration instead of using hardcoded paths
|
|
11
27
|
- **Enhanced**: Added interactive prompt to detect existing translation directories before creating new ones
|
|
@@ -23,6 +39,11 @@ All notable changes to the I18N Management Toolkit are documented here. This pro
|
|
|
23
39
|
- **Fixed**: `i18ntk-usage.js` and `i18ntk-manage.js` now respect settings configuration over auto-detection
|
|
24
40
|
- **Improved**: Settings-based directory configuration takes precedence over hardcoded defaults
|
|
25
41
|
|
|
42
|
+
### ๐จ Known Issues in 1.2.1
|
|
43
|
+
- **Critical**: `settingsManager.setDirectories is not a function` error prevents custom directory configuration
|
|
44
|
+
- **Impact**: Users cannot add custom translation directories or configure existing ones
|
|
45
|
+
- **Recommendation**: Immediate upgrade to v1.2.2 required for full functionality
|
|
46
|
+
|
|
26
47
|
## [1.2.0] - 2025-08-02
|
|
27
48
|
|
|
28
49
|
### ๐งน Code Cleanup & Simplification
|
package/README.md
CHANGED
|
@@ -220,7 +220,7 @@ npm run i18ntk:debug
|
|
|
220
220
|
|
|
221
221
|
---
|
|
222
222
|
|
|
223
|
-
**Version:** 1.2.
|
|
223
|
+
**Version:** 1.2.2 โ Critical bug fix for custom locale support! ๐ฏ
|
|
224
224
|
## ๐ License
|
|
225
225
|
|
|
226
226
|
This project is licensed under the MIT License - see the `LICENSE` file for details.
|
package/main/i18ntk-init.js
CHANGED
|
@@ -224,7 +224,9 @@ class I18nInitializer {
|
|
|
224
224
|
this.sourceLanguageDir = path.join(this.sourceDir, this.config.sourceLanguage);
|
|
225
225
|
|
|
226
226
|
// Save to settings
|
|
227
|
-
settingsManager.
|
|
227
|
+
const currentSettings = settingsManager.getSettings();
|
|
228
|
+
currentSettings.sourceDir = selectedDir;
|
|
229
|
+
settingsManager.saveSettings(currentSettings);
|
|
228
230
|
|
|
229
231
|
return true;
|
|
230
232
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "i18ntk",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
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.2.
|
|
127
|
+
"version": "1.2.2",
|
|
128
128
|
"releaseDate": "02/08/2025",
|
|
129
129
|
"lastUpdated": "02/08/2025",
|
|
130
130
|
"maintainer": "Vladimir Noskov",
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
{
|
|
2
|
+
"language": "en",
|
|
3
|
+
"sizeLimit": null,
|
|
4
|
+
"sourceDir": "./locales",
|
|
5
|
+
"sourceLanguage": "en",
|
|
6
|
+
"defaultLanguages": [
|
|
7
|
+
"de",
|
|
8
|
+
"es",
|
|
9
|
+
"fr",
|
|
10
|
+
"ru"
|
|
11
|
+
],
|
|
12
|
+
"outputDir": "./i18ntk-reports",
|
|
13
|
+
"reportLanguage": "auto",
|
|
14
|
+
"theme": "light",
|
|
15
|
+
"autoSave": true,
|
|
16
|
+
"notifications": {
|
|
17
|
+
"enabled": true,
|
|
18
|
+
"types": {
|
|
19
|
+
"success": true,
|
|
20
|
+
"warnings": true,
|
|
21
|
+
"errors": true,
|
|
22
|
+
"progress": true
|
|
23
|
+
},
|
|
24
|
+
"sound": false,
|
|
25
|
+
"desktop": false
|
|
26
|
+
},
|
|
27
|
+
"dateFormat": "DD/MM/YYYY",
|
|
28
|
+
"timeFormat": "24h",
|
|
29
|
+
"timezone": "auto",
|
|
30
|
+
"processing": {
|
|
31
|
+
"notTranslatedMarker": "NOT_TRANSLATED",
|
|
32
|
+
"excludeFiles": [
|
|
33
|
+
".DS_Store",
|
|
34
|
+
"Thumbs.db",
|
|
35
|
+
"*.tmp",
|
|
36
|
+
"auth.json",
|
|
37
|
+
"pagination.json",
|
|
38
|
+
"reportGenerator.json",
|
|
39
|
+
"validationStep.json"
|
|
40
|
+
],
|
|
41
|
+
"excludeDirs": [
|
|
42
|
+
"node_modules",
|
|
43
|
+
".git",
|
|
44
|
+
"dist",
|
|
45
|
+
"build"
|
|
46
|
+
],
|
|
47
|
+
"includeExtensions": [
|
|
48
|
+
".js",
|
|
49
|
+
".jsx",
|
|
50
|
+
".ts",
|
|
51
|
+
".tsx",
|
|
52
|
+
".vue",
|
|
53
|
+
".svelte"
|
|
54
|
+
],
|
|
55
|
+
"strictMode": false,
|
|
56
|
+
"defaultLanguages": [
|
|
57
|
+
"de",
|
|
58
|
+
"es",
|
|
59
|
+
"fr",
|
|
60
|
+
"ru"
|
|
61
|
+
],
|
|
62
|
+
"translationPatterns": [
|
|
63
|
+
{},
|
|
64
|
+
{},
|
|
65
|
+
{}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"advanced": {
|
|
69
|
+
"batchSize": 100,
|
|
70
|
+
"maxConcurrentFiles": 10,
|
|
71
|
+
"enableProgressBars": true,
|
|
72
|
+
"enableColorOutput": true,
|
|
73
|
+
"strictMode": false,
|
|
74
|
+
"enableAuditLog": false,
|
|
75
|
+
"backupBeforeChanges": true,
|
|
76
|
+
"validateOnSave": true,
|
|
77
|
+
"sizingThreshold": 50,
|
|
78
|
+
"sizingFormat": "table",
|
|
79
|
+
"memoryLimit": "512MB",
|
|
80
|
+
"timeout": 30000
|
|
81
|
+
},
|
|
82
|
+
"security": {
|
|
83
|
+
"adminPinEnabled": false,
|
|
84
|
+
"adminPinPromptOnInit": false,
|
|
85
|
+
"keepAuthenticatedUntilExit": true,
|
|
86
|
+
"sessionTimeout": 30,
|
|
87
|
+
"maxFailedAttempts": 3,
|
|
88
|
+
"lockoutDuration": 15,
|
|
89
|
+
"enablePathValidation": true,
|
|
90
|
+
"maxFileSize": 10485760,
|
|
91
|
+
"allowedExtensions": [
|
|
92
|
+
".json",
|
|
93
|
+
".js",
|
|
94
|
+
".jsx",
|
|
95
|
+
".ts",
|
|
96
|
+
".tsx",
|
|
97
|
+
".vue",
|
|
98
|
+
".svelte"
|
|
99
|
+
],
|
|
100
|
+
"notTranslatedMarker": "[NOT TRANSLATED]",
|
|
101
|
+
"excludeFiles": [
|
|
102
|
+
"node_modules",
|
|
103
|
+
".git",
|
|
104
|
+
"dist",
|
|
105
|
+
"build"
|
|
106
|
+
],
|
|
107
|
+
"strictMode": false
|
|
108
|
+
},
|
|
109
|
+
"debug": {
|
|
110
|
+
"enabled": false,
|
|
111
|
+
"showSecurityLogs": false,
|
|
112
|
+
"verboseLogging": false,
|
|
113
|
+
"logLevel": "info",
|
|
114
|
+
"saveDebugLogs": false,
|
|
115
|
+
"debugLogPath": "./debug.log"
|
|
116
|
+
}
|
|
117
|
+
}
|