locize-cli 7.14.6 → 7.14.8
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 +8 -0
- package/README.md +3 -0
- package/package.json +3 -3
- package/request.js +2 -0
- package/sync.js +5 -0
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
|
+
## [7.14.8](https://github.com/locize/locize-cli/compare/v7.14.7...v7.14.8) - 2023-08-01
|
|
9
|
+
|
|
10
|
+
- sync: log path if passing custom path argument
|
|
11
|
+
|
|
12
|
+
## [7.14.7](https://github.com/locize/locize-cli/compare/v7.14.6...v7.14.7) - 2023-07-28
|
|
13
|
+
|
|
14
|
+
- retry on ETIMEDOUT
|
|
15
|
+
|
|
8
16
|
## [7.14.6](https://github.com/locize/locize-cli/compare/v7.14.5...v7.14.6) - 2023-05-24
|
|
9
17
|
|
|
10
18
|
- update xlsx dependency
|
package/README.md
CHANGED
|
@@ -73,6 +73,7 @@ Add your project-id and let's go...
|
|
|
73
73
|
```sh
|
|
74
74
|
locize download --project-id my-project-id-93e1-442a-ab35-24331fa294ba --ver latest --language en --namespace namespace1 --path ./backup
|
|
75
75
|
```
|
|
76
|
+
*Make sure to use `--ver` and not `--version` (`--version` will print the CLI version).*
|
|
76
77
|
|
|
77
78
|
or
|
|
78
79
|
|
|
@@ -203,6 +204,7 @@ Add your api-key (of target version) and your project-id and let's go...
|
|
|
203
204
|
# this will copy version latest to production
|
|
204
205
|
locize copy-version latest --api-key my-api-key-d9de-4f55-9855-a9ef0ed44672 --project-id my-project-id-93e1-442a-ab35-24331fa294ba --ver production
|
|
205
206
|
```
|
|
207
|
+
*Make sure to use `--ver` and not `--version` (`--version` will print the CLI version).*
|
|
206
208
|
|
|
207
209
|
|
|
208
210
|
## Publish version
|
|
@@ -223,6 +225,7 @@ Add your api-key and your project-id and let's go...
|
|
|
223
225
|
```sh
|
|
224
226
|
locize delete-namespace common --api-key my-api-key-d9de-4f55-9855-a9ef0ed44672 --project-id my-project-id-93e1-442a-ab35-24331fa294ba --ver latest
|
|
225
227
|
```
|
|
228
|
+
*Make sure to use `--ver` and not `--version` (`--version` will print the CLI version).*
|
|
226
229
|
|
|
227
230
|
|
|
228
231
|
## Migration of existing i18next files
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "locize-cli",
|
|
3
|
-
"version": "7.14.
|
|
3
|
+
"version": "7.14.8",
|
|
4
4
|
"description": "locize cli to import locales",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"commander": "9.5.0",
|
|
16
16
|
"csvjson": "5.1.0",
|
|
17
17
|
"diff": "5.1.0",
|
|
18
|
-
"dotenv": "16.
|
|
18
|
+
"dotenv": "16.3.1",
|
|
19
19
|
"flat": "5.0.2",
|
|
20
20
|
"fluent_conv": "3.2.0",
|
|
21
21
|
"gettext-converter": "1.2.3",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"xlsx": "https://cdn.sheetjs.com/xlsx-0.19.3/xlsx-0.19.3.tgz"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"eslint": "8.
|
|
37
|
+
"eslint": "8.45.0",
|
|
38
38
|
"gh-release": "7.0.2",
|
|
39
39
|
"pkg": "5.8.1"
|
|
40
40
|
},
|
package/request.js
CHANGED
|
@@ -33,6 +33,8 @@ module.exports = (url, options, callback) => {
|
|
|
33
33
|
}
|
|
34
34
|
}).then((ret) => callback(null, ret.res, ret.obj)).catch((err) => {
|
|
35
35
|
if (err && err.message && (
|
|
36
|
+
err.message.indexOf('ETIMEDOUT') > -1 || // on timeout retry
|
|
37
|
+
// on dns errors
|
|
36
38
|
err.message.indexOf('ENOTFOUND') > -1 ||
|
|
37
39
|
err.message.indexOf('ENODATA') > -1 ||
|
|
38
40
|
err.message.indexOf('ENOENT') > -1 // Windows: name exists, but not this record type
|
package/sync.js
CHANGED
|
@@ -571,6 +571,7 @@ const sync = (opt, cb) => {
|
|
|
571
571
|
return handleError(new Error('Please provide also an api-key!'), cb);
|
|
572
572
|
}
|
|
573
573
|
|
|
574
|
+
console.log(colors.grey('checking remote (locize)...'));
|
|
574
575
|
getRemoteLanguages(opt, (err, remoteLanguages) => {
|
|
575
576
|
if (err) return handleError(err, cb);
|
|
576
577
|
|
|
@@ -579,6 +580,7 @@ const sync = (opt, cb) => {
|
|
|
579
580
|
}
|
|
580
581
|
|
|
581
582
|
if (opt.referenceLanguageOnly) {
|
|
583
|
+
console.log(colors.grey(`checking local${opt.path !== process.cwd() ? ` (${opt.path})` : ''} only reference language...`));
|
|
582
584
|
parseLocalReference(opt, (err, localNamespaces) => {
|
|
583
585
|
if (err) return handleError(err, cb);
|
|
584
586
|
|
|
@@ -587,11 +589,13 @@ const sync = (opt, cb) => {
|
|
|
587
589
|
localNamespaces = [];
|
|
588
590
|
}
|
|
589
591
|
|
|
592
|
+
console.log(colors.grey('calculate diffs...'));
|
|
590
593
|
handleSync(opt, remoteLanguages, localNamespaces, cb);
|
|
591
594
|
});
|
|
592
595
|
return;
|
|
593
596
|
}
|
|
594
597
|
|
|
598
|
+
console.log(colors.grey(`checking local${opt.path !== process.cwd() ? ` (${opt.path})` : ''}...`));
|
|
595
599
|
parseLocalLanguages(opt, remoteLanguages, (err, localNamespaces) => {
|
|
596
600
|
if (err) return handleError(err, cb);
|
|
597
601
|
|
|
@@ -600,6 +604,7 @@ const sync = (opt, cb) => {
|
|
|
600
604
|
localNamespaces = [];
|
|
601
605
|
}
|
|
602
606
|
|
|
607
|
+
console.log(colors.grey('calculate diffs...'));
|
|
603
608
|
handleSync(opt, remoteLanguages, localNamespaces, cb);
|
|
604
609
|
});
|
|
605
610
|
});
|