i18next-express-middleware
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -0,1 +1,4 @@ | ||
### 1.0.1 | ||
- fixes call to loadLanguages | ||
### 1.0.0 | ||
@@ -2,0 +5,0 @@ - use an i18next instance clone instead of a pseudo/mock object, keep clone lng and req.lng in sync |
@@ -46,2 +46,6 @@ 'use strict'; | ||
// set locale | ||
req.language = req.locale = req.lng = lng; | ||
req.languages = i18next.services.languageUtils.toResolveHierarchy(lng); | ||
// trigger sync to instance - might trigger async load! | ||
i18n.changeLanguage(lng || i18next.options.fallbackLng[0]); | ||
@@ -48,0 +52,0 @@ |
{ | ||
"name": "i18next-express-middleware", | ||
"version": "1.0.0", | ||
"version": "1.0.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
24559
434