Module i18n for Nuxt
The next @nuxtjs/i18n 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
devDependencieswiht 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/i18nto themodulessection ofnuxt.config.ts
{
modules: [
'@nuxtjs/i18n',
],
}- Add the following line to the
devDependenciesinpackage.json:
"@nuxtjs/i18n": "npm:@nuxtjs/i18n-edge"-
Run
npm installoryarnorpnpm isntall --shamefully-hoist. -
Add
@nuxtjs/i18nto themodulessection ofnuxt.config.ts
{
modules: [
'@nuxtjs/i18n',
],
}Keep in mind that not all features are supported yet and some things might be broken.
- 📘 Documentation for v8
- 📘 Documentation for v7
- 🔖 Release notes
- 👥 Community (
#i18nchannel)
MIT License - Copyright (c) Nuxt Community