sunfuze / koa-i18next

A middleware to use i18next in koajs.
14 stars 4 forks source link

How to set context language ? #10

Open Aarbel opened 4 years ago

Aarbel commented 4 years ago

Looks like you use http data to set the language that i18nnext will use.

Is there a way to overwrite it ?

For example after my app initalization, i have an auth middleware, and i'd like to set the i18nnext language function of the authenticated user's language (stored in my database).

Tnanks a lot for your help @sunfuze