ilib-loctool-webos-ts-resource
Advanced tools
Comparing version 1.2.10 to 1.3.0
{ | ||
"name": "ilib-loctool-webos-ts-resource", | ||
"version": "1.2.10", | ||
"version": "1.3.0", | ||
"main": "./TSResourceFileType.js", | ||
@@ -51,3 +51,3 @@ "description": "A loctool plugin that knows how to process ts resource files", | ||
"dependencies": { | ||
"ilib": "^14.15.0", | ||
"ilib": "^14.15.1", | ||
"pretty-data": "^0.40.0", | ||
@@ -58,5 +58,5 @@ "xml2json": "^0.12.0" | ||
"assertextras": "^1.1.0", | ||
"loctool": "2.17.0", | ||
"loctool": "2.18.0", | ||
"nodeunit": "^0.11.3" | ||
} | ||
} |
@@ -6,2 +6,6 @@ # ilib-loctool-webos-ts-resource | ||
## Release Notes | ||
v1.3.0 | ||
* Updated dependencies. (loctool: 2.18.0) | ||
* Added ability to override language default locale. | ||
v1.2.10 | ||
@@ -8,0 +12,0 @@ * Updated dependencies. (loctool: 2.17.0) |
@@ -23,5 +23,5 @@ /* | ||
var Locale = require("ilib/lib/Locale.js"); | ||
var LocaleMatcher = require("ilib/lib/LocaleMatcher.js"); | ||
var xml2json = require("xml2json"); | ||
var PrettyData = require("pretty-data").pd; | ||
var Utils = require("loctool/lib/utils.js"); | ||
@@ -41,4 +41,2 @@ /** | ||
var TSResourceFile = function(props) { | ||
var lanDefaultLocale; | ||
this.project = props.project; | ||
@@ -48,6 +46,6 @@ this.locale = new Locale(props.locale); | ||
this.logger = this.API.getLogger("loctool.plugin.webOSTSResourceFile"); | ||
this.minimalLocale = new LocaleMatcher({locale: props.locale}).getLikelyLocaleMinimal().getSpec(); | ||
lanDefaultLocale = new LocaleMatcher({locale: this.locale.language}).getLikelyLocaleMinimal().getSpec(); | ||
this.baseLocale = lanDefaultLocale === this.minimalLocale; | ||
if (Object.keys(this.project.localeMap).length > 0){ | ||
Utils.setBaseLocale(props.project.localeMap); | ||
} | ||
this.baseLocale = Utils.isBaseLocale(this.locale.getSpec()); | ||
this.set = this.API.newTranslationSet(this.project && this.project.sourceLocale || "en-US"); | ||
@@ -54,0 +52,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84
31193
Updatedilib@^14.15.1