cute-localize
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -5,5 +5,5 @@ var merge = require("merge"); | ||
var extraLocations = (options && options.extraLocations) ? options.extraLocations : null; | ||
if (typeof options.extraLocations != "string" && !(options.extraLocations instanceof Array)) | ||
if (options && typeof options.extraLocations != "string" && !(options.extraLocations instanceof Array)) | ||
extraLocations = null; | ||
if (typeof options.extraLocations == "string") | ||
if (options && typeof options.extraLocations == "string") | ||
extraLocations = [extraLocations]; | ||
@@ -77,3 +77,3 @@ var locations = extraLocations || []; | ||
}; | ||
translate.setLocale((options.locale && (typeof options.locale == "string")) ? options.locale : "en"); | ||
translate.setLocale((options && options.locale && (typeof options.locale == "string")) ? options.locale : "en"); | ||
return translate; | ||
@@ -80,0 +80,0 @@ }; |
{ | ||
"name": "cute-localize", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
17279