Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ilib-loctool-webos-ts-resource

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ilib-loctool-webos-ts-resource - npm Package Compare versions

Comparing version 1.2.10 to 1.3.0

6

package.json
{
"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 @@ };

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc