cute-localize
Advanced tools
Comparing version 0.1.11 to 0.1.12
@@ -66,2 +66,7 @@ var merge = require("merge"); | ||
translate.setLocale = function(locale) { | ||
if (typeof locale === 'object') { | ||
translate.locale = 'object'; | ||
translate.translations = locale; | ||
return; | ||
} | ||
if (!locale || typeof locale != "string") | ||
@@ -80,3 +85,4 @@ return; | ||
}; | ||
translate.setLocale((options && options.locale && (typeof options.locale == "string")) ? options.locale : "en"); | ||
translate.setLocale((options && options.locale | ||
&& (typeof options.locale == "string" || typeof options.locale === 'object')) ? options.locale : "en"); | ||
return translate; | ||
@@ -83,0 +89,0 @@ }; |
{ | ||
"name": "cute-localize", | ||
"version": "0.1.11", | ||
"version": "0.1.12", | ||
"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
17720
312