locize-cli 9.1.0 → 9.1.1
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 +4 -0
- package/convertToDesiredFormat.js +4 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
Project versioning adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
Change log format is based on [Keep a Changelog](http://keepachangelog.com/).
|
|
7
7
|
|
|
8
|
+
## [9.1.1](https://github.com/locize/locize-cli/compare/v9.1.0...v9.1.1) - 2025-05-08
|
|
9
|
+
|
|
10
|
+
- xlsx: fix for longer namespace names
|
|
11
|
+
|
|
8
12
|
## [9.1.0](https://github.com/locize/locize-cli/compare/v9.0.2...v9.1.0) - 2025-05-07
|
|
9
13
|
|
|
10
14
|
- introduce `remove-version` command
|
|
@@ -130,8 +130,10 @@ const convertToDesiredFormat = (
|
|
|
130
130
|
|
|
131
131
|
const worksheet = xlsx.utils.json_to_sheet(js2XlsxData);
|
|
132
132
|
const workbook = xlsx.utils.book_new();
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
let workSheetName = namespace;
|
|
134
|
+
if (workSheetName.length > 31) workSheetName = workSheetName.substring(0, 31);
|
|
135
|
+
workbook.SheetNames.push(workSheetName);
|
|
136
|
+
workbook.Sheets[workSheetName] = worksheet;
|
|
135
137
|
|
|
136
138
|
const wbout = xlsx.write(workbook, { type: 'buffer' });
|
|
137
139
|
|