Skip to content

Releases: i18nexus/next-i18n-router

v5.5.1

08 Jul 21:44
Compare
Choose a tag to compare
  • Fixes bug that caused an unnecessary extra redirect due to trailing slash in pathname (#79)

v5.5.0

29 May 17:16
Compare
Choose a tag to compare
  • Add cookieOptions config option for setting custom Set-Cookie attributes

v5.4.3

20 May 17:53
Compare
Choose a tag to compare
  • Remove console warning in localeDetector when invalid accept-language header present

v5.4.2

23 Apr 22:49
Compare
Choose a tag to compare
  • Fixes bug where noPrefix did not use localeDetector when no cookie present (#70)

v5.4.1

21 Apr 21:59
Compare
Choose a tag to compare
  • Update next dev dependency to 14.2.2

v5.4.0

23 Mar 05:17
Compare
Choose a tag to compare
  • 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

10 Feb 15:55
Compare
Choose a tag to compare
  • Fixes a TypeScript compilation issue that occurred during release of v5.3.0.

v5.3.0

08 Feb 05:46
Compare
Choose a tag to compare
  • Change default of serverSetCookie to "always".
  • Add "never" option to serverSetCookie. This is the same as undefined in previous versions.

v5.2.1

01 Feb 07:01
Compare
Choose a tag to compare

Update dependencies

v.5.2.0

05 Jan 18:23
Compare
Choose a tag to compare
  • 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