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
withinnext.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
- add hoc to fix client components in next-translate-plugin by @aralroca in #1061
- add tests about flat keys when keySeparator=false by @aralroca in #1065
- update appdir example and upgrade dependencies by @aralroca in #1070
- improve appDir example by @aralroca in #1071
What's Changed in Next-translate-plugin
- use appDir with pagesDir together + remove expermiental.appDir by @aralroca in aralroca/next-translate-plugin#25
- fix error in Next.js 13.4.x by @aralroca in aralroca/next-translate-plugin#26
- fix client components by @aralroca in aralroca/next-translate-plugin#27
- add tests and some improvements by @aralroca in aralroca/next-translate-plugin#29
- improve loadLocaleFrom detection to allow to change it with hotreloading by @aralroca in aralroca/next-translate-plugin#32
- avoid parsing client components inside node_modules by @aralroca in aralroca/next-translate-plugin#34
- support /[lang] dynamic route by @aralroca in aralroca/next-translate-plugin#36
- fix monorepo with appdir by @aralroca in aralroca/next-translate-plugin#37
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