Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

i18next-express-middleware

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18next-express-middleware - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

3

CHANGELOG.md

@@ -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 @@

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc