locize-cli 9.1.0 → 9.1.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
@@ -5,6 +5,14 @@ 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.2](https://github.com/locize/locize-cli/compare/v9.1.1...v9.1.2) - 2025-05-12
9
+
10
+ - sync: wait a bit longer to download from remote if auto-translate option is passed
11
+
12
+ ## [9.1.1](https://github.com/locize/locize-cli/compare/v9.1.0...v9.1.1) - 2025-05-08
13
+
14
+ - xlsx: fix for longer namespace names
15
+
8
16
  ## [9.1.0](https://github.com/locize/locize-cli/compare/v9.0.2...v9.1.0) - 2025-05-07
9
17
 
10
18
  - 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.2",
4
4
  "description": "locize cli to import locales",
5
5
  "main": "index.js",
6
6
  "bin": {
package/sync.js CHANGED
@@ -527,7 +527,7 @@ const handleSync = (opt, remoteLanguages, localNamespaces, cb) => {
527
527
  });
528
528
  const shouldOmit = lngsInReqs.length > 5 || nsInReqs.length > 5;
529
529
 
530
- var wasThereSomethingToUpdate = false;
530
+ var wasThereSomethingToUpdate = opt.autoTranslate || false;
531
531
 
532
532
  function updateComparedNamespaces() {
533
533
  const now = new Date();
@@ -607,7 +607,7 @@ const handleSync = (opt, remoteLanguages, localNamespaces, cb) => {
607
607
  if (!cb) console.log(colors.green('FINISHED'));
608
608
  if (cb) cb(null);
609
609
  });
610
- }, wasThereSomethingToUpdate && !opt.dry ? 5000 : 0);
610
+ }, wasThereSomethingToUpdate && !opt.dry ? (opt.autoTranslate ? 10000 : 5000) : 0);
611
611
  }
612
612
 
613
613
  if (!shouldOmit) return down();