locize-cli 7.6.16 → 7.6.17
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 +5 -0
- package/download.js +5 -1
- package/package.json +3 -3
- package/sync.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,11 @@ 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.6.17](https://github.com/locize/locize-cli/compare/v7.6.16...v7.6.17) - 2021-09-21
|
|
9
|
+
|
|
10
|
+
- check skipEmpty flag when downloading translations
|
|
11
|
+
|
|
12
|
+
|
|
8
13
|
## [7.6.16](https://github.com/locize/locize-cli/compare/v7.6.15...v7.6.16) - 2021-09-20
|
|
9
14
|
|
|
10
15
|
- by default set also languageFolderPrefix to empty string when using programmatically
|
package/download.js
CHANGED
|
@@ -152,10 +152,14 @@ const download = (opt, cb) => {
|
|
|
152
152
|
opt.apiKey = null;
|
|
153
153
|
request(url, {
|
|
154
154
|
method: 'get',
|
|
155
|
-
}, (err, res, obj) =>
|
|
155
|
+
}, (err, res, obj) => {
|
|
156
|
+
if (opt.skipEmpty) obj = obj.filter((d) => d.size > 2);
|
|
157
|
+
handleDownload(opt, url, err, res, obj, cb);
|
|
158
|
+
});
|
|
156
159
|
return;
|
|
157
160
|
}
|
|
158
161
|
|
|
162
|
+
if (opt.skipEmpty) obj = obj.filter((d) => d.size > 2);
|
|
159
163
|
handleDownload(opt, url, err, res, obj, cb);
|
|
160
164
|
});
|
|
161
165
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "locize-cli",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.17",
|
|
4
4
|
"description": "locize cli to import locales",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"laravelphp": "2.0.3",
|
|
24
24
|
"lodash.clonedeep": "4.5.0",
|
|
25
25
|
"mkdirp": "1.0.4",
|
|
26
|
-
"node-fetch": "2.6.
|
|
26
|
+
"node-fetch": "2.6.2",
|
|
27
27
|
"resx": "2.0.3",
|
|
28
28
|
"rimraf": "3.0.2",
|
|
29
29
|
"strings-file": "0.0.5",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"eslint": "7.32.0",
|
|
36
|
-
"gh-release": "
|
|
36
|
+
"gh-release": "6.0.0",
|
|
37
37
|
"pkg": "5.3.2"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|