---
title: "i18n | No Name Studio"
description: "A guide to set up internationalization (i18n) for your Nuxt Starter Kit"
canonical_url: "https://nnsvn.me/vi/products/nuxt-starter-kit/api/configuration/i18n"
meta:
  author: "No Name Studio"
  keywords: "No Name Studio, software development, web development, SaaS, digital products, freelance developers, Vietnam"
  "og:description": "A guide to set up internationalization (i18n) for your Nuxt Starter Kit"
  "og:image": "https://nnsvn.me/pwa-512x512.png"
  "og:title": i18n
  "twitter:description": "A guide to set up internationalization (i18n) for your Nuxt Starter Kit"
  "twitter:image": "https://nnsvn.me/pwa-512x512.png"
  "twitter:title": i18n
---

> Index of every page on this site: [llms.txt](https://nnsvn.me/llms.txt)

Trang này chưa có bản dịch Tiếng Việt. Bạn đang xem bản gốc (English).

# **i18n**

## Configuring internationalization

### Add `i18n` Configuration

First, you need to add the `i18n` configuration to your Nuxt.js project. Open your `nuxt.config.ts` file and add the following configuration:

### Organize Your Content Files

To support multiple languages, you need to organize your content files in a specific directory structure. Follow this file tree structure:

- content/
  - index.md
  - xx/
    - index.md

- The `content` directory contains your default language content files.
- The `xx` directory inside `content` contains the translations of your content files, `xx` being the language code (e.g., `fr/index.md` for French).

**Note**

If you are using language codes that are not two letters (e.g., `zh-CN` and `en-US`), your content folder name should be in ****lowercase****.

Alternatively, you can set `content.respectPathCase: true` in `nuxt.config.ts` to use the same case as the language code.

### Create `i18n/i18n.config.ts`

Next, create a new file named `i18n/i18n.config.ts`. This file will contain the configuration for your i18n messages to translate. Add the following code to the file:

### UI Translation

The UI locale will follow the selected language in the language switcher. UI translations are provided out-of-the-box for the following languages:

- `en` (English)
- `vi` (Tiếng Việt)

If you want to add more UI locales, feel free to contribute to the project.

Or if you want to add your own translations, you can do so by following the structure in the [`i18n/i18n.config.ts`](https://github.com/No-Name-Studio-VN/Homepage/blob/main/i18n/i18n.config.ts) file. Just add the translations for the keys you want to translate in the respective language object.

[Phản ánh vấn đề](https://github.com/No-Name-Studio-VN/Homepage/issues/new/choose)· [Chỉnh sửa trang này](https://github.com/No-Name-Studio-VN/Homepage/edit/main/content/1.products/1.nuxt-starter-kit/3.api/1.configuration/6.i18n.md)

```json
{"@context":"https://schema.org","@type":"Article","headline":"i18n","description":"A guide to set up internationalization (i18n) for your Nuxt Starter Kit","url":"https://nnsvn.me/vi/products/nuxt-starter-kit/api/configuration/i18n","mainEntityOfPage":{"@type":"WebPage","@id":"https://nnsvn.me/vi/products/nuxt-starter-kit/api/configuration/i18n"},"publisher":{"@type":"Organization","name":"No Name Studio"}}
```

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Products","item":"https://nnsvn.me/vi/products/nuxt-starter-kit/getting-started/introduction"},{"@type":"ListItem","position":2,"name":"Nuxt Starter Kit","item":"https://nnsvn.me/vi/products/nuxt-starter-kit/getting-started/introduction"},{"@type":"ListItem","position":3,"name":"Api","item":"https://nnsvn.me/vi/products/nuxt-starter-kit/api/configuration/shadcn-docs"},{"@type":"ListItem","position":4,"name":"Configuration","item":"https://nnsvn.me/vi/products/nuxt-starter-kit/api/configuration/shadcn-docs"},{"@type":"ListItem","position":5,"name":"i18n","item":"https://nnsvn.me/vi/products/nuxt-starter-kit/api/configuration/i18n"}]}
```

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://nnsvn.me/vi#website","@type":"WebSite","description":"No Name Studio is a freelance software team building production-grade web applications, SaaS platforms, and digital products for startups and enterprises.","inLanguage":"vi","name":"No Name Studio","url":"https://nnsvn.me/vi","publisher":{"@id":"https://nnsvn.me/#identity"},"translationOfWork":{"@id":"https://nnsvn.me/#website"}},{"@id":"https://nnsvn.me/vi/products/nuxt-starter-kit/api/configuration/i18n#webpage","@type":"WebPage","description":"A guide to set up internationalization (i18n) for your Nuxt Starter Kit","name":"i18n","url":"https://nnsvn.me/vi/products/nuxt-starter-kit/api/configuration/i18n","isPartOf":{"@id":"https://nnsvn.me/vi#website"},"potentialAction":[{"@type":"ReadAction","target":["https://nnsvn.me/vi/products/nuxt-starter-kit/api/configuration/i18n"]}]},{"@id":"https://nnsvn.me/#identity","@type":"Organization","name":"No Name Studio","url":"https://nnsvn.me"}]}
```

## Sitemap

See the full [sitemap](https://nnsvn.me/sitemap.md) for all pages.
