An open API service indexing awesome lists of open source software.

https://github.com/nuxt-modules/i18n

I18n module for Nuxt
https://github.com/nuxt-modules/i18n

i18n internationalization javascript nuxt nuxt-module routing typescript vue

Last synced: 10 days ago
JSON representation

I18n module for Nuxt

Awesome Lists containing this project

README

          

[![Nuxt i18n](./docs/public/cover.png)](https://i18n.nuxtjs.org)

[![](https://img.shields.io/npm/v/%40nuxtjs%2Fi18n/latest.svg?style=flat&label=npm&colorA=18181B)](https://npmjs.com/package/%40nuxtjs%2Fi18n)
[![](https://img.shields.io/npm/dm/%40nuxtjs%2Fi18n?style=flat&colorA=18181B&color=blue)](https://npmjs.com/package/%40nuxtjs%2Fi18n)
[![](https://snyk.io/test/github/nuxt-community/i18n-module/badge.svg?style=flat-square)](https://snyk.io/test/github/nuxt-modules/i18n)
Volta board

# Nuxt I18n

Internationalization (i18n) for Nuxt apps.

[📖 Read documentation](https://i18n.nuxtjs.org/)

## 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

```sh
npx nuxi@latest module add i18n
```

2. Configure the module using the `i18n` key in `nuxt.config.ts`

```ts
{
modules: [
'@nuxtjs/i18n',
],
i18n: {
locales: [
{ code: 'en', language: 'en-US' },
{ code: 'fr', language: 'fr-FR' }
],
defaultLocale: 'en',
}
}
```

## Sponsors





## 🔗 Links

- 🔖 [Release notes](./CHANGELOG.md)
- đŸ‘Ĩ [Community](https://discord.nuxtjs.org/) (`đŸ—¨ī¸â“ help` support forum)
- 📖 Documentation
- [Version 10.x](https://next.i18n.nuxtjs.org/)
- [Version 9.x](https://v9.i18n.nuxtjs.org/)
- [Version 8.x](https://v9.i18n.nuxtjs.org/docs/v8)
- [Version 7.x (Nuxt 2 - EOL)](https://v9.i18n.nuxtjs.org/docs/v7)

## ÂŠī¸ License

[MIT License](./LICENSE) - Copyright (c) Nuxt Community