vscode-nls
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -119,6 +119,4 @@ /* -------------------------------------------------------------------------------------------- | ||
else { | ||
if (isDefined(json.messages) && isDefined(json.order)) { | ||
var messages = []; | ||
json.order.forEach(function (key) { return messages.push(json.messages[key]); }); | ||
return createScopedLocalizeFunction(messages); | ||
if (isDefined(json.messages) && isDefined(json.keys)) { | ||
return createScopedLocalizeFunction(json.messages); | ||
} | ||
@@ -125,0 +123,0 @@ else { |
{ | ||
"name": "vscode-nls", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "NPM module to externalize and localize VSCode extensions", | ||
@@ -5,0 +5,0 @@ "author": "Microsoft Corporation", |
@@ -18,3 +18,4 @@ # vscode-nls | ||
console.log(localize('key', 'Hello World')); | ||
console.log(localize('keyOne', "Hello World")); | ||
console.log(localize('keyTwo', "Current Date {0}", Date.now())); | ||
``` | ||
@@ -21,0 +22,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
9307
27
163