locize-cli 7.12.6 → 7.12.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 +1 -1
- package/getRemoteNamespace.js +1 -1
- package/package.json +1 -1
- package/sync.js +1 -1
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.8](https://github.com/locize/locize-cli/compare/v7.12.7...v7.12.8) - 2022-11-14
|
|
9
|
+
|
|
10
|
+
- try to fix a random error while syncing
|
|
11
|
+
|
|
12
|
+
## [7.12.7](https://github.com/locize/locize-cli/compare/v7.12.6...v7.12.7) - 2022-09-09
|
|
13
|
+
|
|
14
|
+
- fix for #75
|
|
15
|
+
|
|
8
16
|
## [7.12.6](https://github.com/locize/locize-cli/compare/v7.12.5...v7.12.6) - 2022-08-26
|
|
9
17
|
|
|
10
18
|
- internal optimization of unpublished download workflow
|
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***
|
package/getRemoteNamespace.js
CHANGED
|
@@ -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
package/sync.js
CHANGED
|
@@ -110,7 +110,7 @@ const compareNamespace = (local, remote, lastModifiedLocal, lastModifiedRemote)
|
|
|
110
110
|
}
|
|
111
111
|
if (
|
|
112
112
|
remote[k] && (
|
|
113
|
-
(typeof local[k] === 'object' && local[k].value && remote[k] !== local[k].value) ||
|
|
113
|
+
(typeof local[k] === 'object' && local[k] && local[k].value && remote[k] !== local[k].value) ||
|
|
114
114
|
(typeof local[k] !== 'object' && remote[k] !== local[k])
|
|
115
115
|
)
|
|
116
116
|
) {
|