---
title: "Internationalization (i18n) in Nuxt"
description: "The kit ships English and German with Nuxt i18n. Each layer brings its own translation files, and a unit test checks that every locale has the same keys."
canonical_url: "https://nuxtstarterkit.com/docs/i18n"
---

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

This starter kit uses [nuxt-i18n](https://nuxt.com/modules/i18n) module to provide internationalization (i18n) support for your application. This allows you to easily manage translations and switch between different languages.

The kit ships English (`en`, default) and German (`de`). The base messages are in `apps/web/layers/core/i18n/locales/`. Every optional layer brings its own messages in `i18n/locales/{en,de}.json` and lists them under `i18n.locales` in its `nuxt.config.ts`. Nuxt merges the messages of all layers, so deleting a layer also deletes its translations.

All user-facing strings go through `t('...')`. Add every key to `en.json` and `de.json` of the layer that uses it. A unit test checks that both files have the same keys.

## What if I don't need i18n support?

I would highly recommend to not remove the i18n module from your project, even if you don't need it. The i18n module is used in many places in the starter kit, and removing it will require a lot of changes to the code.

Even if you don't want to support multiple languages, you can still use the i18n module to manage your translations. This is especially useful if you want to support multiple languages in the future.

Of course, you can hard code any text in your app, but this is not recommended. The i18n module provides a simple and consistent API for managing translations, and it is much easier to use than hard coding text in your app.

## Sitemap

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