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.
In my application I'm already using using header to pass local between server and client. It's called x-locale and it's exactly the same as X-NEXT-INTL-LOCALE. But right now I need to pass both headers.
I'm happy to help contribute this feature and submit PR if you are willing to approve such feature
Describe the solution you'd like
Add ability to change header name in next.config similar as we are changing path to i18n file
Describe alternatives you've considered
Add both x-locale and X-NEXT-INTL-LOCALE header
The text was updated successfully, but these errors were encountered:
Thank you for offering your help for contribution @marcincodes!
In my application I'm already using using header to pass local between server and client
x-next-intl-locale is meant as a workaround for passing the locale between the middleware and React Server Components (some more on this in the static rendering section in the docs).
What is your use case for providing the x-locale header? Note that you can compose the middleware to read from a custom header to assign e.g. the defaultLocale dynamically.
x-next-intl-locale is really a workaround that is currently necessary and I hope to remove it eventually. Therefore, I'm not looking for configuration options in regard to this—I hope you can understand!
Is your feature request related to a problem? Please describe.
In my application I'm already using using header to pass local between server and client. It's called
x-locale
and it's exactly the same asX-NEXT-INTL-LOCALE
. But right now I need to pass both headers.I'm happy to help contribute this feature and submit PR if you are willing to approve such feature
Describe the solution you'd like
Add ability to change header name in next.config similar as we are changing path to i18n file
Describe alternatives you've considered
Add both
x-locale
andX-NEXT-INTL-LOCALE
headerThe text was updated successfully, but these errors were encountered: