# Next Intl Add Language

> Adds a new language to a Next.js app that uses next-intl: translates messages/en.json, registers the locale in routing.ts and middleware.ts, and adds it to the language toggle. Use when localizing a next-intl application into another language.

- Skill: `mouadja02/next-intl-add-language` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add mouadja02/next-intl-add-language`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mouadja02/next-intl-add-language/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- License: MIT
- Author: mouadja02 (https://skillmd.com/u/mouadja02)
- Updated: 2026-11-12
- Page: https://skillmd.com/skills/mouadja02/next-intl-add-language

---


> **Attribution:** Sourced from [github/awesome-copilot](https://github.com/github/awesome-copilot) by [GitHub Community](https://github.com/github), licensed MIT. Modified for this collection.

This is a guide to add a new language to a Next.js project using next-intl for internationalization,

- For i18n, the application uses next-intl.
- All translations are in the directory `./messages`.
- The UI component is `src/components/language-toggle.tsx`.
- Routing and middleware configuration are handled in:
  - `src/i18n/routing.ts`
  - `src/middleware.ts`

When adding a new language:

- Translate all the content of `en.json` to the new language. The goal is to have all the JSON entries in the new language for a complete translation.
- Add the path in `routing.ts` and `middleware.ts`.
- Add the language to `language-toggle.tsx`.

