github aralroca/next-translate 2.3.0

16 months ago

Summer release 2.3 ☀️

Where are versions 2.1 and 2.2? Why did we go from 2.0.6 to 2.3? Well, this release we have focused on fixing compatibility bugs with Next.js 13.3, when writing the version it was a mistake to think so much about 3, but now it stays with 2.3! 😸

In this new release:

  • You can use the pages directory together with the app directory to facilitate migration.
  • We have fixed other issues with Next.js > 13.3 that we could fix on our end.
  • You no longer need to use experimental.appDir within next.config.js.

Breaking change from Next.js >= 13.3

The middleware of the appDir that we had in the example and recommended in the documentation stopped working.

As a solution, we have added support for it to be done using the dynamic route /[lang]. The example and README.md have been updated so that you can see how to make it work. We have not stopped supporting the old way, and it is assumed that it will work again when this issue in Next.js is fixed:

If you are affected by this Next.js issue, you can write there or contribute to the solution. In any case, you can use now the dynamic route /[lang] and, without needing the middleware, you can use the redirect within the RSC (see example).

What's Changed in Next-translate

What's Changed in Next-translate-plugin

Full Next-translate Changelog: 2.0.6...2.3.0
Full Changelog Next-translate-plugin: aralroca/next-translate-plugin@2.0.5...2.3.0

Don't miss a new next-translate release

NewReleases is sending notifications on new releases.