Nuxt I18n

i18n 用于您的 Nuxt 项目。「i18n for your Nuxt project.」

Github stars Tracking Chart

Nuxt i18n





Nuxt I18n

I18n module for Nuxt

The i18n module for Nuxt 3

✅ Status: v8

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

🚀 Usage

Install

  1. Add the following line to the devDependencies with your package manager:
# Using npm
npm install @nuxtjs/i18n --save-dev

# Using yarn
yarn add --dev @nuxtjs/i18n

# Using pnpm
pnpm install -D @nuxtjs/i18n
  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"
++    "@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"
  }
}

📖 Documentation

Read more v8 documentation.

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

©️ License

MIT License - Copyright (c) Nuxt Community

Main metrics

Overview
Name With Ownernuxt-modules/i18n
Primary LanguageTypeScript
Program languageJavaScript (Language Count: 4)
PlatformLinux, Mac, Windows
License:MIT License
所有者活动
Created At2017-11-12 20:42:35
Pushed At2025-07-05 14:39:05
Last Commit At
Release Count271
Last Release Namev10.0.0-rc.2 (Posted on 2025-07-05 16:37:00)
First Release Namev0.0.1 (Posted on 2017-11-12 17:07:46)
用户参与
Stargazers Count1.9k
Watchers Count26
Fork Count501
Commits Count1.3k
Has Issues Enabled
Issues Count1711
Issue Open Count136
Pull Requests Count1476
Pull Requests Open Count15
Pull Requests Close Count264
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private