vscode-nls
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -17,2 +17,2 @@ export interface Options { | ||
export declare function loadMessageBundle(file?: string): LocalizeFunc; | ||
export declare function config(options?: Options): LoadFunc; | ||
export declare function config(opt?: Options | string): LoadFunc; |
@@ -135,3 +135,15 @@ /* -------------------------------------------------------------------------------------------- | ||
exports.loadMessageBundle = loadMessageBundle; | ||
function config(options) { | ||
function config(opt) { | ||
var options; | ||
if (isString(opt)) { | ||
try { | ||
options = JSON.parse(opt); | ||
} | ||
catch (e) { | ||
console.error("Error parsing nls options: " + opt); | ||
} | ||
} | ||
else { | ||
options = opt; | ||
} | ||
if (options) { | ||
@@ -138,0 +150,0 @@ if (isString(options.locale)) { |
{ | ||
"name": "vscode-nls", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "NPM module to externalize and localize VSCode extensions", | ||
@@ -5,0 +5,0 @@ "author": "Microsoft Corporation", |
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
11281
177