Skip to content

nuxt-modules/i18n

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
November 7, 2023 08:54
November 25, 2023 17:09
November 25, 2023 23:57
src
November 24, 2023 00:05
December 4, 2021 18:07
December 4, 2021 18:07
December 21, 2022 02:50
December 21, 2022 02:50
October 3, 2023 01:51
December 4, 2021 18:07
October 3, 2023 11:47
November 24, 2023 00:05

Nuxt i18n

Volta board

Nuxt I18n

I18n module for Nuxt

The next i18n module for Nuxt 3

βœ… Status: v8 RC (Release candidate)

If you would like to use the stable version for Nuxt 2, please see the v7 branch

πŸš€ Usage

Install with next tag

  1. 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 -D @nuxtjs/i18n@next
  1. Add @nuxtjs/i18n to the modules section of nuxt.config.ts
{
  modules: [
    '@nuxtjs/i18n',
  ],
}

Edge Release Channel

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.

Opting Into the Edge Channel

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.

Opting Out From the Edge Channel

Update nuxt i18n module dependency inside package.json:

{
  "devDependencies": {
--    "@nuxtjs/i18n": "npm:@nuxtjs/i18n-edge"
++    "@nuxtjs/i18n": "^8.0.0-rc.1"
  }
}

πŸ“– Documentation

Read more v8 documentation.

Keep in mind that not all features are currently supported yet and some things might be broken.

πŸ”— Links

©️ License

MIT License - Copyright (c) Nuxt Community