QuiiBz / next-international

Type-safe internationalization (i18n) for Next.js
https://next-international.vercel.app
MIT License
1.2k stars 52 forks source link

feat(next-international): added `cookieName` and `headerName` options #360

Open valentinpolitov opened 4 months ago

valentinpolitov commented 4 months ago

Added cookieName and headerName options to middleware config closes #305

vercel[bot] commented 4 months ago

@valentinpolitov is attempting to deploy a commit to the Tom Labs Team on Vercel.

A member of the Team first needs to authorize it.

QuiiBz commented 4 months ago

Thanks for this PR! I'd like to include it in the V2, so we'll wait a bit before merging: https://github.com/QuiiBz/next-international/issues/359

ahmedelq commented 3 weeks ago

Would love to use this. Any date for when V2 will be released?

XtN commented 5 days ago

This option would be wonderful, but it should also include options for the cookie. Right now it's configured as SameSite=Strict which will result in ignoring the cookie on redirect. / -> will always go to locale from Accept-Language/or result of resolveLocaleFromRequest and not the preferred cookie value