Skip to content

Releases: nuxt-modules/i18n

v9.1.0

18 Nov 16:01
Compare
Choose a tag to compare

This release contains bug fixes and a new experimental option, you may need to refresh your lockfiles while updating.

⚙️ Configurable generated file and directory paths

In v9 (and lower) the i18n file and directory paths are absolute by default which could expose sensitive path information about your build environment in production.

To combat this we have added a new experimental option, experimental.generatedLocaleFilePathFormat, which is used to configure the way these paths are processed. We will explore more approaches to improve this functionality in the future.

Check out the documentation on its usage here.

   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub

v9.0.0

03 Nov 11:23
Compare
Choose a tag to compare

We're happy to announce the stable release of v9!

The primary focus of this major release is to remove deprecated functionality and upgrade Vue I18n to v10, we did manage to sneak in some enhancements listed below.

🚨 Breaking changes

This update includes breaking changes so please make sure to review these in the migration documentation, if you run into problems during migration please open an issue so we can improve the guide!

📂 Directory restructure

We now use a default directory structure that is consistent with directory structure changes in Nuxt 4.

Here is an example of a project structure after this change:

app/
server/
i18n/
  locales/
    en.json
    ja.json
  i18n.config.ts
  localeDetector.ts
nuxt.config.ts

This can be configured with the restructureDir option which is set to i18n by default, see the docs for more details.

🛣️ Route type generation

Code_2024-09-27_12-02-50.mp4

Experimental route type generation improves DX for all route utilities and components by adding autocompletion and stricter type checks.

This feature can be enabled with the experimental.typedPages option, see the docs for more details.

⌨️ Messages and vue-i18n type generation

Code_2024-07-17_14-54-20.mp4

Experimental messages and vue-i18n options type generation improves DX by adding autocompletion and type safety for translation functions and configuration.

This feature can be enabled with the experimental.typedOptionsAndMessages option, see the docs for more details.

    View changes on GitHub

v8.5.6

02 Nov 15:18
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub

v9.0.0-rc.2

07 Oct 07:39
Compare
Choose a tag to compare
v9.0.0-rc.2 Pre-release
Pre-release

Please take time to view the Breaking changes in v9 page for an overview of changes and migration steps required. Share your feedback and experience so we can land v9 as stable and as soon as possible 🙏

You may need to refresh lockfiles before installing to ensure the correct subdependencies are installed.

At stable release we will include a proper overview of the improvements we have made in this major version.

   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub

v9.0.0-rc.1

30 Sep 13:39
Compare
Choose a tag to compare
v9.0.0-rc.1 Pre-release
Pre-release

As we are approaching stable v9 we are excited to publish the first release candidate! Share your feedback and experience so we can land v9 as stable and as soon as possible 🙏

Please take time to view the Breaking changes in v9 page for an overview of changes and migration steps required.

You may need to refresh lockfiles before installing to ensure the correct subdependencies are installed.

At stable release we will include a propert overview of the improvements we have made in this major version.

   🚨 Breaking Changes

   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub

v9.0.0-alpha.3

21 Sep 06:34
Compare
Choose a tag to compare
v9.0.0-alpha.3 Pre-release
Pre-release

   🐞 Bug Fixes

    View changes on GitHub

v8.5.5

21 Sep 13:24
Compare
Choose a tag to compare

No significant changes

    View changes on GitHub

v8.5.4

20 Sep 09:41
Compare
Choose a tag to compare

This release removes version checks that prevent usage with Nuxt versions higher than 3.x.

The path resolution for langDir (relative to srcDir) and localeDetector (relative to rootDir) remain unchanged, to ease migration to v9 we recommend configuring experimental.restructureDir which will be enabled and set to i18n by default in the upcoming major release.

   🚀 Features

    View changes on GitHub

v9.0.0-alpha.2

17 Sep 14:56
Compare
Choose a tag to compare
v9.0.0-alpha.2 Pre-release
Pre-release

   🚨 Breaking Changes

   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub

v8.5.3

10 Sep 22:05
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub