i18nexus / next-i18n-router

Next.js App Router internationalized routing and locale detection.
MIT License
257 stars 17 forks source link

Provide a way to change the X-Next-I18n-Router-Locale header #63

Open monolithed opened 7 months ago

monolithed commented 7 months ago

It would be great to have the ability to change the name of the X-Next-I18n-Router-Locale header, as such identification impacts the security of applications.

By the way: why don't you use Content-Language instead?

i18nexus commented 7 months ago

The x-next-i18n-router-locale header is actually an artifact of an older version of this library. It is not really needed anymore and we should probably get rid of it, but I know some developers still use it for certain reasons. But you're right, this would make much more sense as a Content-Language header. We'll go ahead and implement this. Thanks!