Releases: i18nexus/next-i18n-router
Releases · i18nexus/next-i18n-router
v3.1.1
v3.1.0
- Adds
basePath
config option to support using the Next configbasePath
- Adds the
currentLocale
helper function for retrieving the current language in Server Components - Adds the
useCurrentLocale
hook for retrieving the current language in Client Components
v3.0.1
Minor README update
v3.0.0
- Pathname language prefix for the default language no longer required
- Remove need for
[lang]
dynamic segment by introducing thei18nRewriter
getLocale
option replaced withlocaleDetector
- Cookie detection now independent of
localeDetector
detection - Add config option for
prefixDefault
Breaking changes
i18nRouter
is no longer a default import
// v2.0.0
import i18nRouter from 'next-i18n-router';
// v3.0.0
import { i18nRouter } from 'next-i18n-router';
i18nRewriter
must be used to create language paths innext.config.js
getLocale
has been replaced withlocaleDetector
- To continue having the default language's pathname prefixed, the
prefixDefault
option should be set totrue
v2.0.0
v1.0.2
- Adds a default
localeCookie
named NEXT_LOCALE - Fixes a bug when reading request cookies
v1.0.0
Initial Release