@nuxtjs/i18n
TypeScript icon, indicating that this package has built-in type declarations

9.1.0 • Public • Published

Nuxt i18n

Volta board

Nuxt I18n

Internationalization (i18n) for Nuxt apps.

📖 Read documentation

Features

  • Integration with vue-i18n
  • Route localization (static & dynamic)
  • Lazy load translations
  • SEO tag localization
  • Layer support

🚀 Usage

Install

  1. Install the @nuxtjs/i18n module to your project
npx nuxi@latest module add i18n
  1. Configure the module using the i18n key in nuxt.config.ts
{
  modules: [
    '@nuxtjs/i18n',
  ],
  i18n: {
    locales: [
      { code: 'en', language: 'en-US' },
      { code: 'fr', language: 'fr-FR' }
    ],
    defaultLocale: 'en',
  }
}

Edge Release Channel

Nuxt I18n lands commits, improvements and bug fixes every day, you can opt in to test these before their release using the edge release channel.

Opting In

Update @nuxtjs/i18n 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

Update @nuxtjs/i18n dependency inside package.json:

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

Remove lockfile (package-lock.json, yarn.lock, or pnpm-lock.yaml) and reinstall dependencies.

Nuxt 2

Since Nuxt 2 has reached its end-of-life (EOL) date we are not actively maintaining support for this version, the last version to support Nuxt 2 is v7.

The codebase for this version can be found on the v7 branch and its documentation here.

🔗 Links

©️ License

MIT License - Copyright (c) Nuxt Community

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
7.3.130,0137x
9.1.05,302latest
9.0.0-rc.21,826next

Version History

VersionDownloads (Last 7 Days)Published
9.1.05,302
9.0.013,777
8.5.636,097
9.0.0-rc.21,826
9.0.0-rc.115
8.5.533,583
9.0.0-alpha.32
8.5.4613
9.0.0-alpha.23
8.5.35,923
8.5.22,199
8.5.15,539
8.5.03,125
8.4.0646
8.3.36,817
8.3.223
9.0.0-alpha.1186
8.3.124,360
8.3.03,557
8.2.09,008
8.1.15,680
8.1.0344
8.0.2617
8.0.1891
8.0.05,437
8.0.0-rc.11792
8.0.0-rc.101
8.0.0-rc.9272
8.0.0-rc.854
8.0.0-rc.7123
8.0.0-rc.6135
8.0.0-rc.53,711
8.0.0-rc.41,230
8.0.0-rc.31,044
8.0.0-rc.2585
8.0.0-rc.1126
8.0.0-beta.13266
8.0.0-beta.121,001
8.0.0-beta.11670
8.0.0-beta.101,225
8.0.0-beta.9629
8.0.0-beta.8595
7.3.130,013
8.0.0-beta.7149
8.0.0-beta.644
8.0.0-beta.50
8.0.0-beta.49
8.0.0-beta.30
8.0.0-beta.249
8.0.0-beta.11
8.0.0-alpha.30
8.0.0-alpha.20
8.0.0-alpha.11
7.3.05,469
7.2.3528
7.2.21,880
7.2.1317
7.2.01,910
7.1.0605
7.0.3608
7.0.2136
7.0.188
7.0.017
0.0.00

Package Sidebar

Install

npm i @nuxtjs/i18n

Weekly Downloads

219,853

Version

9.1.0

License

MIT

Unpacked Size

246 kB

Total Files

55

Last publish

Collaborators

  • damianglowala
  • gugustinette
  • antfu
  • danielroe
  • clarkdo
  • pi0
  • atinux
  • alexchopin
  • bobbiegoede
  • kazupon
  • rchl