i18next-express-middleware
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -100,4 +100,8 @@ 'use strict'; | ||
var lng = _this.detectors[detectorName].lookup(req, res, _this.options); | ||
if (lng && typeof lng === 'string') { | ||
var detections = _this.detectors[detectorName].lookup(req, res, _this.options); | ||
if (typeof detection === 'string') detections = [detections]; | ||
detections.forEach(function (lng) { | ||
if (found) return; | ||
var cleanedLng = _this.services.languageUtils.formatLanguageCode(lng); | ||
@@ -109,3 +113,3 @@ | ||
}; | ||
} | ||
}); | ||
}); | ||
@@ -112,0 +116,0 @@ |
{ | ||
"name": "i18next-express-middleware", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "express middleware for i18next", | ||
@@ -5,0 +5,0 @@ "main": "./lib/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
22147
415