Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question about documentation #187

Open
ImanMh opened this issue Jul 30, 2019 · 1 comment
Open

question about documentation #187

ImanMh opened this issue Jul 30, 2019 · 1 comment

Comments

@ImanMh
Copy link

ImanMh commented Jul 30, 2019

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.

@ImanMh ImanMh changed the title question aboud documentation question about documentation Jul 30, 2019
@jamuhl
Copy link
Member

jamuhl commented Jul 30, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants