You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I have a monorepo with some frontend apps. This apps are looking for a NEXT_LOCALE cookie when looking for currentLang.
Now I'm integrating one of the apps (website) to use next-international.
For the other apps to continue working, I will need to change the cookie name in all apps to Next-locale and I'll need also a migration, so users with NEXT_LOCALE cookie won't be affected by this. I'll need to copy NEXT_LOCALE content to Next-locale cookie in all apps.
Describe the solution you'd like
We should be able to change LOCALE_COOKIE constant. createI18nMiddleware should probably accept this argument.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I have a monorepo with some frontend apps. This apps are looking for a
NEXT_LOCALE
cookie when looking for currentLang.Now I'm integrating one of the apps (website) to use
next-international
.For the other apps to continue working, I will need to change the cookie name in all apps to
Next-locale
and I'll need also a migration, so users withNEXT_LOCALE
cookie won't be affected by this. I'll need to copyNEXT_LOCALE
content toNext-locale
cookie in all apps.Describe the solution you'd like
We should be able to change LOCALE_COOKIE constant.
createI18nMiddleware
should probably accept this argument.The text was updated successfully, but these errors were encountered: