@zohodesk/client_build_tool 0.0.21 → 0.0.22
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
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog and Release Notes
|
|
2
2
|
|
|
3
|
+
# v0.0.22 (17-01-2026)
|
|
4
|
+
|
|
5
|
+
**Fix:-**
|
|
6
|
+
- The decodeUnicodeEscapes function was removed from the i18n file emit stage and moved to the getPropertiesAsJSON function.
|
|
7
|
+
- We changed the function invocation location because an additional / was appearing in the i18n output when generating i18n files using numeric indexing.
|
|
8
|
+
|
|
3
9
|
# v0.0.21 (10-01-2026)
|
|
4
10
|
|
|
5
11
|
**Feature:-**
|
package/README.md
CHANGED
|
@@ -475,6 +475,12 @@ First Release
|
|
|
475
475
|
- 'templates' command to create es for react library
|
|
476
476
|
# Changelog and Release Notes
|
|
477
477
|
|
|
478
|
+
# v0.0.22 (17-01-2026)
|
|
479
|
+
|
|
480
|
+
**Fix:-**
|
|
481
|
+
- The decodeUnicodeEscapes function was removed from the i18n file emit stage and moved to the getPropertiesAsJSON function.
|
|
482
|
+
- We changed the function invocation location because an additional / was appearing in the i18n output when generating i18n files using numeric indexing.
|
|
483
|
+
|
|
478
484
|
# v0.0.21 (10-01-2026)
|
|
479
485
|
|
|
480
486
|
**Feature:-**
|
package/lib/shared/bundler/webpack/custom_plugins/I18nNumericIndexPlugin/I18nNumericIndexPlugin.js
CHANGED
|
@@ -10,7 +10,6 @@ const {
|
|
|
10
10
|
} = require('webpack');
|
|
11
11
|
|
|
12
12
|
const {
|
|
13
|
-
decodeUnicodeEscapes,
|
|
14
13
|
getPropertiesAsJSON
|
|
15
14
|
} = require('../I18nSplitPlugin/utils/propertiesUtils');
|
|
16
15
|
|
|
@@ -162,7 +161,7 @@ class I18nNumericIndexPlugin {
|
|
|
162
161
|
}
|
|
163
162
|
|
|
164
163
|
emitChunk(compilation, filenameTemplate, locale, data, manifest) {
|
|
165
|
-
const content =
|
|
164
|
+
const content = JSON.stringify(data);
|
|
166
165
|
const fileContent = `${this.options.jsonpFunc}(${content});`;
|
|
167
166
|
const contentHash = createHash({
|
|
168
167
|
outputOptions: compilation.outputOptions,
|
|
@@ -36,7 +36,7 @@ function getPropertiesAsJSON(filePath) {
|
|
|
36
36
|
|
|
37
37
|
const ind = line.indexOf('=');
|
|
38
38
|
const key = line.slice(0, ind).replace(/\\ /g, ' ');
|
|
39
|
-
const value = line.slice(ind + 1);
|
|
39
|
+
const value = decodeUnicodeEscapes(line.slice(ind + 1));
|
|
40
40
|
|
|
41
41
|
if (key && value) {
|
|
42
42
|
i18nObj[key] = value;
|