I18n module for Nuxt
The next i18n module for Nuxt 3
If you would like to use the stable version for Nuxt 2, please see the main
branch
- Add the following line to the
devDependencies
with your package manager:
# Using npm
npm install @nuxtjs/i18n@next --save-dev
# Using yarn
yarn add --dev @nuxtjs/i18n@next
# Using pnpm
pnpm install --shamefully-hoist -D @nuxtjs/i18n@next
- Add
@nuxtjs/i18n
to themodules
section ofnuxt.config.ts
{
modules: [
'@nuxtjs/i18n',
],
}
We provide the Edge Release Channel nuxt i18n module, like Nuxt3
Nuxt i18n module is undergoing commits, improvements and bug fixes. You can opt-in to be the first to test it before the next release.
Update nuxt i18n module dependency inside package.json
:
{
"devDependencies": {
-- "@nuxtjs/i18n": "^8.0.0-rc.1"
++ "@nuxtjs/i18n": "npm:@nuxtjs/i18n-edge"
}
}
Remove lockfile (package-lock.json
, yarn.lock
, or pnpm-lock.yaml
) and reinstall dependencies.
Update nuxt i18n module dependency inside package.json
:
{
"devDependencies": {
-- "@nuxtjs/i18n": "npm:@nuxtjs/i18n-edge"
++ "@nuxtjs/i18n": "^8.0.0-rc.1"
}
}
Keep in mind that not all features are currently supported yet and some things might be broken.
- 📘 Documentation for v8
- 📘 Documentation for v7
- 🔖 Release notes
- 👥 Community (
#i18n
channel)
MIT License - Copyright (c) Nuxt Community