Haz tu pregunta y obtén un resumen del documento referenciando esta página y el proveedor AI de tu elección
Historial de versiones
- "Init history"v9.0.013/6/2026
El contenido de esta página ha sido traducido con una IA.
Ver la última versión del contenido original en inglésIf you have an idea for improving this documentation, please feel free to contribute by submitting a pull request on GitHub.
GitHub link to the documentationCopy doc Markdown to clipboard
Migrate from NuxtJS I18n to Intlayer
Migrating your Nuxt application from @nuxtjs/i18n to Intlayer is a seamless process using the Nuxt adapter module.
What to do
To initialize the project, run:
Copiar el código al portapapeles
npx intlayer initThis will set up intlayer.config.ts. Then, add the Intlayer Nuxt module (e.g. @intlayer/nuxt-i18n) in your nuxt.config.ts modules array. This automatically applies the compat configuration for your application.
What it does under the hood
@nuxtjs/i18n wraps vue-i18n while providing Nuxt-specific routing composables (useLocalePath, useSwitchLocalePath, <NuxtLinkLocale>).
Under the hood:
- Translations: Relies natively on the
@intlayer/vue-i18ncompat layer for all string translation tasks (fully supportingvue-i18nformats, pipe plurals, and reactivity). - Routing: Mirrors the routing composables using Intlayer's localized URL helpers.
- Configuration: Reads the
availableLocalesand default settings straight from yourintlayer.config.tsto coordinate Nuxt pages automatically.