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.
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 usenext-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.