lookup-closest-locale
Advanced tools
Comparing version 6.0.0 to 6.0.3
@@ -6,7 +6,7 @@ // @flow | ||
if (typeof locale === 'string' && available[locale]) return locale | ||
const locales = [].concat(locale || []) | ||
for (let l = 0, ll = locales.length; l < ll; ++l) { | ||
const current = locales[l].split('-') | ||
var locales = [].concat(locale || []) | ||
for (var l = 0, ll = locales.length; l < ll; ++l) { | ||
var current = locales[l].split('-') | ||
while (current.length) { | ||
const candidate = current.join('-') | ||
var candidate = current.join('-') | ||
if (available[candidate]) return candidate | ||
@@ -13,0 +13,0 @@ current.pop() |
{ | ||
"name": "lookup-closest-locale", | ||
"version": "6.0.0", | ||
"version": "6.0.3", | ||
"description": "Lookup the closest locale from among object keys", | ||
@@ -5,0 +5,0 @@ "author": "Andy VanWagoner <andy@thetalecrafter.com> (https://thetalecrafter.com/)", |
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
1186