i18next / i18next-express-middleware

[deprecated] can be replaced with i18next-http-middleware
https://github.com/i18next/i18next-http-middleware
MIT License
207 stars 55 forks source link

question about documentation #187

Open ImanMh opened 5 years ago

ImanMh commented 5 years ago

I'm trying to use language detection feature of this package but I can't. It seems like I need to implement both wire up i18next to request object and then language detection is that right?

All I want to do is to make i18next-express-middleware read and write language from my cookies.

jamuhl commented 5 years ago

you can add the handle function like any middleware -> get/set the cookie has do be done per request -> https://github.com/i18next/i18next-express-middleware/blob/master/src/index.js#L40