i18next-express-middleware
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -63,2 +63,3 @@ 'use strict'; | ||
if (i18next.services.languageDetector) i18next.services.languageDetector.cacheUserLanguage(lng); | ||
next(); | ||
}; | ||
@@ -74,3 +75,3 @@ } | ||
return function (req, res) { | ||
if (i18next.services.backendConnector) return res.status(404).send('i18next-express-middleware:: no backend configured'); | ||
if (!i18next.services.backendConnector) return res.status(404).send('i18next-express-middleware:: no backend configured'); | ||
@@ -117,3 +118,3 @@ var resources = {}; | ||
if (i18next.services.backendConnector) return res.status(404).send('i18next-express-middleware:: no backend configured'); | ||
if (!i18next.services.backendConnector) return res.status(404).send('i18next-express-middleware:: no backend configured'); | ||
@@ -120,0 +121,0 @@ for (var m in req.body) { |
{ | ||
"name": "i18next-express-middleware", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"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
7182
138