Skip to main content

next-intl-add-language

Add new language to a Next.js + next-intl application

Aller à l'installation

Informations de source

Dépôt
github/awesome-copilot
Dernière activité de la source
24 février 2026 à 03:39
Langue détectée de SKILL.md
anglais
Étoiles
39 255
Forks
4 987

Options d'installation

Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.

Vérifiez les fichiers source

Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.

Affichage de SKILL.md

SKILL.md
Instructions source · Aperçu en lecture seule
name
next-intl-add-language
description
Add new language to a Next.js + next-intl application
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`.
Voir sur GitHub