locize-cli 10.0.1 → 10.0.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.
- package/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/parseLocalLanguage.js +1 -0
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
|
+
## [10.0.2](https://github.com/locize/locize-cli/compare/v10.0.1...v10.0.2) - 2025-07-02
|
|
9
|
+
|
|
10
|
+
- respect opt.namespace when parsing local namespaces
|
|
11
|
+
|
|
8
12
|
## [10.0.1](https://github.com/locize/locize-cli/compare/v10.0.0...v10.0.1) - 2025-07-02
|
|
9
13
|
|
|
10
14
|
- respect opt.namespaces when parsing local namespaces
|
package/package.json
CHANGED
package/parseLocalLanguage.js
CHANGED
|
@@ -125,6 +125,7 @@ const parseLocalLanguage = (opt, lng, cb) => {
|
|
|
125
125
|
}
|
|
126
126
|
if (!namespace) return clb(new Error(`namespace could not be found in ${fPath}`));
|
|
127
127
|
if (opt.namespaces && opt.namespaces.indexOf(namespace) < 0) return clb(null);
|
|
128
|
+
if (opt.namespace && opt.namespace !== namespace) return clb(null);
|
|
128
129
|
fs.readFile(fPath, (err, data) => {
|
|
129
130
|
if (err) return clb(err);
|
|
130
131
|
|