0.36.0 • Published 4 years ago

@narando/express-read-language-from-user v0.36.0

Weekly downloads
1
License
UNLICENSED
Repository
gitlab
Last release
4 years ago

@narando/express-read-language-from-user

A middleware to set the language wich will be used by i18next.

Getting Started

You need to have nodejs, npm, express and 18next installed.

$ npm install @narando/express-read-language-from-user

Usage

The middleware will use languages from the user object at req and has the i18next language as fallback:

import changeUILanguage from "@narando/express-read-language-from-user";

// add middleware to express
app.router(changeUILanguage());

You should use this in combination with @narando/express-i18n-middleware and @narando/preferred-ui-language

0.36.0

4 years ago

0.35.0

5 years ago

0.34.1

5 years ago

0.34.0

5 years ago

0.33.0

5 years ago

0.32.0

5 years ago

0.31.0

5 years ago

0.30.0

6 years ago

0.29.0

6 years ago

0.28.5

6 years ago

0.28.4

6 years ago

0.28.0

6 years ago

0.27.0

6 years ago

0.26.1

6 years ago

0.25.0

6 years ago

0.24.0

6 years ago