locize-cli 9.1.1 → 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.
Files changed (3) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/package.json +1 -1
  3. package/sync.js +2 -2
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.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
+
8
12
  ## [9.1.1](https://github.com/locize/locize-cli/compare/v9.1.0...v9.1.1) - 2025-05-08
9
13
 
10
14
  - xlsx: fix for longer namespace names
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "locize-cli",
3
- "version": "9.1.1",
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();