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?
已存档?
是复刻?
已锁定?
是镜像?
是私有?