Releases: i18nexus/next-i18n-router
Releases · i18nexus/next-i18n-router
v5.5.1
- Fixes bug that caused an unnecessary extra redirect due to trailing slash in pathname (#79)
v5.5.0
- Add
cookieOptions
config option for setting custom Set-Cookie
attributes
v5.4.3
- Remove console warning in
localeDetector
when invalid accept-language header present
v5.4.2
- Fixes bug where
noPrefix
did not use localeDetector
when no cookie present (#70)
v5.4.1
- Update
next
dev dependency to 14.2.2
v5.4.0
- Add config option
noPrefix
for hiding the locale prefix in the pathname.
useCurrentLocale
now checks the document cookie for the current locale prior to checking the pathname.
v5.3.1
- Fixes a TypeScript compilation issue that occurred during release of v5.3.0.
v5.3.0
- Change default of
serverSetCookie
to "always"
.
- Add
"never"
option to serverSetCookie
. This is the same as undefined
in previous versions.
v.5.2.0
- Change to cookie redirect behavior: When visiting a pathname that includes a locale, the middleware will now redirect if the locale cookie is set. Previously the redirecting based on cookie only occured on pathnames without a locale, but we've decided this is inconsistent behavior.
- Add
serverSetCookie
config option
- Add
readonly
to locales
typing in config