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 visible (Hide)

next-translate - 2.3.0

Published by aralroca over 1 year 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: https://github.com/aralroca/next-translate/compare/2.0.6...2.3.0
Full Changelog Next-translate-plugin: https://github.com/aralroca/next-translate-plugin/compare/2.0.5...2.3.0

next-translate - 2.3.0-canary.3

Published by aralroca over 1 year ago

What's Changed

Full Changelog: https://github.com/aralroca/next-translate/compare/2.0.6...2.3.0-canary.3

next-translate - 2.0.6

Published by aralroca over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/aralroca/next-translate/compare/2.0.5...2.0.6

next-translate - 2.0.5

Published by aralroca over 1 year ago

What's Changed

What's Changed in next-translate-plugin

Full Changelog: https://github.com/aralroca/next-translate/compare/2.0.4...2.0.5

next-translate - 2.0.4

Published by aralroca over 1 year ago

What's Changed

Full Changelog: https://github.com/aralroca/next-translate/compare/2.0.3...2.0.4

next-translate - 2.0.3

Published by aralroca over 1 year ago

What's Changed

What's Changed in Next-translate-plugin

New Contributors

Full Changelog: https://github.com/aralroca/next-translate/compare/2.0.2...2.0.3

next-translate - 2.0.2

Published by aralroca over 1 year ago

What's Changed

Full Changelog: https://github.com/aralroca/next-translate/compare/2.0.1...2.0.2

next-translate - 2.0.1

Published by aralroca over 1 year ago

What's Changed

What's Changed in Next-translate-plugin

New Contributors

Full Changelog: https://github.com/aralroca/next-translate/compare/2.0.0...2.0.1

next-translate - 2.0.0

Published by aralroca over 1 year ago

Release v2.0.0 🚀

We are pleased to announce the latest release of next-translate with several significant changes that improve the user experience and address known issues.

Improved support for Next.js 13 app directory

With this release, we have made it easier for users to use the app directory of Next.js 13 for both server/client pages and components. Refer to the README.md documentation for more information on this feature. If you're interested in the underlying functionality, we also recommend reading this article.

Also, you have an example here: https://github.com/aralroca/next-translate/tree/master/examples/with-app-directory

Replaced regex with parser in Webpack plugin

Previously, we were using regex in the Webpack plugin, which caused a significant number of issues. With the latest release, we have replaced the regex with a parser, which automatically resolves many of the previously open issues. We would like to extend a special thanks to @StLyn4 for their contributions to this effort.

Next-translate-plugin

To reduce the weight of the plugin, which now includes the parser, we have moved it to a separate package called next-translate-plugin. You can now install it as a devDependency, without impacting your pipeline. This move also ensures that we are ready to provide support for when Turbopack is no longer in alpha.

Migrating from v1.0 to v2.0 😊

If you are currently using next-translate v1.0 and want to upgrade to the latest version, please follow the migration steps described in this link. The migration process involves a few changes, including modifying the next.config.js file and updating your translations. Following these steps will ensure a smooth transition to the new version.

What's Changed

What's Changed on next-translate-plugin

New Contributors

Thank you for using next-translate! We hope that this release enhances your experience, and please feel free to report any issues you encounter.

Full Changelog: https://github.com/aralroca/next-translate/compare/1.6.0...2.0.0

next-translate - 2.0.0-canary.3

Published by aralroca over 1 year ago

What's Changed

Full Changelog: https://github.com/aralroca/next-translate/compare/2.0.0-canary.2...2.0.0-canary.3

next-translate - 2.0.0-canary.2

Published by aralroca over 1 year ago

What's Changed

Full Changelog: https://github.com/aralroca/next-translate/compare/2.0.0-canary.1...2.0.0-canary.2

next-translate - 2.0.0-canary.1

Published by aralroca almost 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/aralroca/next-translate/compare/1.5.0...2.0.0-canary.1

next-translate - 2.0.0-experimental.3

Published by aralroca about 2 years ago

What's Changed

Full Changelog: https://github.com/aralroca/next-translate/compare/2.0.0-experimental.2...2.0.0-experimental.3

next-translate - 2.0.0-experimental.2

Published by aralroca about 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/aralroca/next-translate/compare/1.6.0...2.0.0-experimental.2

next-translate - 1.6.0

Published by aralroca about 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/aralroca/next-translate/compare/1.5.0...1.6.0

next-translate - 1.6.0-canary.1

Published by aralroca about 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/aralroca/next-translate/compare/1.5.0-canary.5...1.6.0-canary.1

next-translate - 1.5.0

Published by aralroca over 2 years ago

New release 1.5 🚀🔆!

News 🗞

Also, we announce that there is the first experimental version of version 2.0 (click to more information about the changes of version 2.0, for now experimental).

Features

Patches

New Contributors

Full Changelog: https://github.com/vinissimus/next-translate/compare/1.4.0...1.5.0

next-translate - 2.0.0-experimental.1

Published by aralroca over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/vinissimus/next-translate/compare/1.5.0-canary.5...2.0.0-experimental.1

next-translate - 1.5.0-canary.5

Published by aralroca over 2 years ago

next-translate - 1.5.0-canary.3

Published by aralroca over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/vinissimus/next-translate/compare/1.5.0-canary.2...1.5.0-canary.3