next-translate

Next.js plugin + i18n API for Next.js 🌍 - Load page translations and use them in an easy way!

MIT License

Downloads
311.8K
Stars
2.5K
Committers
70

Bot releases are hidden (Show)

next-translate - 0.16.0

Published by aralroca over 4 years ago

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 as defaultLangRedirect='lang-path'
  • redirectToDefaultLang=false -> Same as defaultLangRedirect=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 of defaultLangRedirect (by @aralroca) #162
  • Expose fixHref to the API (by @aralroca) #160
  • Support mdx (byΒ @aralroca) #163

PATCHES

  • Fix bug getting the lang in i18nMiddleware and appWithI18n (by @aralroca) #171
  • Fix issue canary release (by @aralroca) #172
  • Fix warning from next.js on CatchAll (by @aralroca) #151
  • Update deps (by @aralroca) #152
  • Update docs (by @aralroca) #161

see all changes

next-translate - 0.16.0-canary.8

Published by aralroca over 4 years ago

CHANGES

  • Add options object for t function and returnObjects option #158
next-translate - 0.16.0-canary.7

Published by aralroca over 4 years ago

CHANGES

  • Fix issue introduced on 0.16.0-canary.5 #172
next-translate - 0.16.0-canary.6

Published by aralroca over 4 years ago

CHANGES

  • Fix bug i18nMiddleware and appWithI18n (getting the language) #171
next-translate - 0.16.0-canary.5

Published by aralroca over 4 years ago

CHANGES

  • Support mdx #163
next-translate - 0.16.0-canary.4

Published by aralroca over 4 years ago

CHANGES

  • Deprecate redirectToDefaultLang in favor of defaultLangRedirect #162
  • Move fixHref and fixAs to first level #160
next-translate - 0.16.0-canary.3

Published by aralroca over 4 years ago

Changes

  • Change html lang attribute on change language #155
next-translate - 0.16.0-canary.2

Published by aralroca over 4 years ago

CHANGES

  • Fix warning from next.js on CatchAll #151
next-translate - 0.16.0-canary.1

Published by aralroca over 4 years ago

CHANGES

  • Removed default language folder (by @Faulik) #147
next-translate - 0.15.1

Published by aralroca over 4 years ago

CHANGES

  • Fix builder.js to allow nested folders inside /api #138
  • Add example how to change the lang of tag #137
  • Update deps #136
next-translate - 0.15.0

Published by aralroca over 4 years ago

In this release, we have 2 bugfixes + updated docs + we add an example on the repo as an alternative to the "build step" using dynamic routes. In future major releases, we may evolve simplifying this and removing the "build step". If you want to help with this, there is an open issue here to discuss.

It's a minor release but doesn't have any new features. However, in the docs we add the I18nProvider documentation in order to resolve problems as multi-language translations on a page. (Before was only internally used by next-translate).

CHANGES

  • [BUGFIX] Fix navigation to defaultLanguage when redirectToDefaultLang=false (Thanks to @mxmtsk to report it) #123
  • [BUGFIX] Fix issue on getInitialProps of undefined (Thanks to @OmarZeidan to report it) #128
  • [DOCS] Add docs about how to use multi-language translations in a page (Thanks to @Fghurayri to report it) #127
  • [DOCS] Add docs to clarify custom server alternative of "build step" (Thanks to @italoayres to report it) #127
  • Add example + docs about an alternative of "build step" using dynamic routes #127
next-translate - 0.15.0-canary.1

Published by aralroca over 4 years ago

CHANGES

  • Fix navigation to defaultLanguage when redirectToDefaultLang=false #123
next-translate - 0.14.3

Published by aralroca over 4 years ago

This release has two bugfixes!! πŸ›

Thanks to @ftonato and @Faulik for their contributions!

PATCHES

  • Fix fallback of very nested translations (by @aralroca, thanks to @Faulik to report it) #119
  • Fix static-site example error on Linux (by @ftonato ) #118
next-translate - 0.14.2

Published by aralroca over 4 years ago

New release πŸŽ‰ Thanks to @vincentducorps and @heatseeker76 for this one!

PATCHES

  • Add rimraf helper to fix a windows issue (started by @heatseeker76 and continues by @aralroca) #115
  • Show 404 if route not found (redirectToDefaultLang) (by @vincentducorps ) #110
  • Update deps (by @aralroca ) #114
next-translate - 0.14.2-canary.2

Published by aralroca over 4 years ago

CHANGES

  • Update deps #114
  • Add rimraf function to fix window issue #115
next-translate - 0.14.2-canary.1

Published by aralroca over 4 years ago

PATCHES

  • Show 404 if route not found (redirectToDefaultLang) (by @vincentducorps ) #110
next-translate - 0.14.1

Published by aralroca over 4 years ago

Another release! πŸŽ‰Thanks to @vincentducorps and @BjoernRave for this one!

This with some patches + an option to the config in order to disable the logs of the builder (yup, little feature and is not in a minor release, sorry).

PATCHES

  • Fix cross-platform build when pages are in src folder (by @vincentducorps) #109
  • Fix README.md mistake (by @aralroca) #108
  • Make build logging optional (by @BjoernRave) #107
  • Fix default value of currentPagesDir in README (by @vincentducorps) #106
next-translate - 0.14.0

Published by aralroca over 4 years ago

In this release, we have two new contributors πŸŽ‰ @psanlorenzo and @vincentducorps !! Welcome and thank you for your contributions!πŸ‘

We are finally supporting cross-platform build so now you can use the CLI also in Windows! πŸ”₯Thanks to @vincentducorps for this great contribution!

CHANGES

  • Add cross-platform build support (by @vincentducorps) #99
  • Change action trigger to pull request (by @psanlorenzo) #100
  • Add Windows to GitHub test job (by @vincentducorps) #103
  • Update deps (by @aralroca) #104
next-translate - 0.14.0-canary.1

Published by aralroca over 4 years ago

CHANGES

  • Change GH action trigger to pull request #100
  • Add cross-platform build support #99
next-translate - 0.13.0

Published by aralroca over 4 years ago

This release introduces a new feature!!

Now is possible to use the language inside the getStaticProps, getStaticPaths, getServerSideProps and getInitialProps. πŸš€ Read here more about it!

We also updated the docs to clarify some points and, thanks to @carme-carrillo, now we have a fancy logo of next-translate!!! πŸŽ‰ It's very cool πŸ˜„

CHANGES

  • Update docs + update logo #98 #96
  • Inject lang into getInitialProps #97
  • Inject lang into getStaticProps, getStaticPaths and getServerSideProps #93 #95