locize-cli 7.12.7 → 7.12.9

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
+ ## [7.12.9](https://github.com/locize/locize-cli/compare/v7.12.8...v7.12.9) - 2022-11-23
9
+
10
+ - update android-string-resource dependency to fix [#79](https://github.com/locize/locize-cli/issues/79)
11
+
12
+ ## [7.12.8](https://github.com/locize/locize-cli/compare/v7.12.7...v7.12.8) - 2022-11-14
13
+
14
+ - try to fix a random error while syncing
15
+
8
16
  ## [7.12.7](https://github.com/locize/locize-cli/compare/v7.12.6...v7.12.7) - 2022-09-09
9
17
 
10
18
  - fix for #75
package/README.md CHANGED
@@ -132,7 +132,7 @@ locize sync --api-key my-api-key-d9de-4f55-9855-a9ef0ed44672 --project-id my-pro
132
132
  - if you have new keys in your local namespace it will add the missing one to locize
133
133
  - if you have new namespaces in your local language directory it will add the missing one to locize
134
134
  - if you have less keys (you have deleted some keys) in your local namespace it will remove them in locize too
135
- - all non reference languages will always be just locally replaced by what is published on locize
135
+ - all non reference languages will always be just locally replaced by what is published on locize, unless the *--skip-delete true* argument is used
136
136
  - if you change the values of existing keys in the reference language, it will not change them in locize (to change the existing values you have to change it directly in locize or use the *--update-values true* argument)
137
137
  - **if you want to take into account all languages instead of the reference language only while comparing the namespace content between local and remote, you can use the command argument *--reference-language-only false***
138
138
  - **if you want to take into account the modification time while comparing the namespace content between local and remote, you can use the command argument *--compare-modification-time true***
@@ -46,7 +46,7 @@ const pullNamespace = (opt, lng, ns, cb) => {
46
46
  ret[k] = info.result[k];
47
47
  });
48
48
 
49
- if (info.lastModified.getTime() > lastModified.getTime()) {
49
+ if (info.lastModified && info.lastModified.getTime() > (lastModified ? lastModified.getTime() : 0)) {
50
50
  lastModified = info.lastModified;
51
51
  }
52
52
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "locize-cli",
3
- "version": "7.12.7",
3
+ "version": "7.12.9",
4
4
  "description": "locize cli to import locales",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -8,11 +8,11 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "@js.properties/properties": "0.5.4",
11
- "android-string-resource": "2.3.4",
11
+ "android-string-resource": "2.3.5",
12
12
  "async": "3.2.4",
13
13
  "cacheable-lookup": "6.1.0",
14
14
  "colors": "1.4.0",
15
- "commander": "9.4.0",
15
+ "commander": "9.4.1",
16
16
  "csvjson": "5.1.0",
17
17
  "diff": "5.1.0",
18
18
  "flat": "5.0.2",
@@ -33,7 +33,7 @@
33
33
  "xlsx": "0.18.5"
34
34
  },
35
35
  "devDependencies": {
36
- "eslint": "8.22.0",
36
+ "eslint": "8.28.0",
37
37
  "gh-release": "6.0.4",
38
38
  "pkg": "5.8.0"
39
39
  },