Here comes another release! 😊 I would especially thank @Faulik and @bickmaev5 for their contributions. 👏
There are new features in this release and some bugfixes.
We recommend changing redirectToDefaultLang
to defaultLangRedirect
. redirectToDefaultLang
it's deprecated and we will no longer support it in future major versions. To migrate from redirectToDefaultLang
to defaultLangRedirect
:
redirectToDefaultLang=true
-> Same asdefaultLangRedirect='lang-path'
redirectToDefaultLang=false
-> Same asdefaultLangRedirect=undefined
(default one)- New one ->
defaultLangRedirect='root'
-> /en/example redirects to /example
FEATURES
- Add options object for t function and returnObjects option (by @bickmaev5) #158
- Add redirect from
/en
to/
(by @Faulik) #149 - Change html lang attribute on change language (by @aralroca) #155
- Deprecate
redirectToDefaultLang
in favor ofdefaultLangRedirect
(by @aralroca) #162 - Expose
fixHref
to the API (by @aralroca) #160 - Support mdx (by @aralroca) #163