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 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
- workbook.SheetNames.push(namespace);
134
- workbook.Sheets[namespace] = worksheet;
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "locize-cli",
3
- "version": "9.1.0",
3
+ "version": "9.1.1",
4
4
  "description": "locize cli to import locales",
5
5
  "main": "index.js",
6
6
  "bin": {