A middleware to set the language wich will be used by `i18next`.
npm install @narando/express-read-language-from-userA middleware to set the language wich will be used by i18next.
You need to have nodejs, npm, express and 18next installed.
``bash`
$ npm install @narando/express-read-language-from-user
The middleware will use languages from the user object at req and has the i18next language as fallback:
`javascript
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`