Nuxt I18n

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

Github星跟蹤圖

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

主要指標

概覽
名稱與所有者nuxt-modules/i18n
主編程語言TypeScript
編程語言JavaScript (語言數: 4)
平台Linux, Mac, Windows
許可證MIT License
所有者活动
創建於2017-11-12 20:42:35
推送於2025-07-05 14:39:05
最后一次提交
發布數271
最新版本名稱v10.0.0-rc.2 (發布於 2025-07-05 16:37:00)
第一版名稱v0.0.1 (發布於 2017-11-12 17:07:46)
用户参与
星數1.9k
關注者數26
派生數501
提交數1.3k
已啟用問題?
問題數1711
打開的問題數136
拉請求數1476
打開的拉請求數15
關閉的拉請求數264
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?