Comparing version 1.5.11 to 1.5.12
@@ -29,2 +29,3 @@ (function() { | ||
options.forceDetectLngFromPath = options.forceDetectLngFromPath !== true ? false : options.forceDetectLngFromPath; | ||
options.ignoreRoutes = options.ignoreRoutes || []; | ||
resStore = options.resStore ? options.resStore : {}; | ||
@@ -64,2 +65,9 @@ | ||
i18n.handle = function(req, res, next) { | ||
var ignore = i18n.options.ignoreRoutes; | ||
for (var i = 0, len = ignore.length; i < len; i++) { | ||
if (req.path.indexOf(ignore[i]) > -1) { | ||
return next(); | ||
} | ||
} | ||
var locale = i18n.detectLanguage(req, res); | ||
@@ -66,0 +74,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "i18n made easy - full featured: middleware, template support plus clientside use", | ||
"version": "1.5.11", | ||
"version": "1.5.12", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -0,1 +1,4 @@ | ||
### v1.5.12 | ||
- ignore routes inside handler | ||
### v1.5.11 | ||
@@ -2,0 +5,0 @@ - fixed bug for returning objTree in combination with namespace |
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
873637
4727