npm @nuxtjs/i18n 10.5.0
v10.5.0

11 hours ago

✨ Custom paths via definePageMeta() in all modes

Custom paths set with definePageMeta() are now used in all customRoutes modes instead of only in 'meta' mode. If a route has custom paths from multiple sources the definePageMeta() value takes precedence and a warning is logged during build, this makes it possible to migrate from the pages option or the deprecated defineI18nRoute() macro one page at a time.

Route meta is now the canonical source of custom paths at build time, this allows projects and modules to set custom paths on routes they add or change in the pages:extend hook, see Hooks and modules.

🛠️ Under the hood

The logic behind differentDomains and multiDomainLocales now shares a single implementation, we're exploring whether these can be combined under a single config option in v11.

Please try it out and let me know if you run into any issues 🙏


   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub

Don't miss a new i18n release

NewReleases is sending notifications on new releases.