
Next Intl Add Language
This automates the tedious process of adding new languages to Next.js apps using next-intl. It handles the complete workflow: duplicates your English translations to create the new language JSON file, updates the routing configuration in both routing.ts and middleware.ts, and modifies your language toggle component to include the new option. Saves you from manually tracking down all the scattered config files and ensures you don't miss any steps. Most useful when you're scaling from a single language to multiple locales and want to avoid the inevitable "why isn't my new language showing up" debugging session.
- skills.sh installs
- 9.4K
- GitHub stars
- 41K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add github/awesome-copilot --skill next-intl-add-language --agent claude-codeInstalls into .claude/skills of the current project.
Files
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.tssrc/middleware.ts
When adding a new language:
- Translate all the content of
en.jsonto 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.tsandmiddleware.ts. - Add the language to
language-toggle.tsx.
Sponsors
Details
- Repository
- github.com/github/awesome-copilot
- Categories
- Frontend Development, Git & Pull Requests, AI & Agent Building
More from github/awesome-copilot
All 318- Project Workflow Analysis Blueprint Generator9.4K
- Java Refactoring Extract Method9.3K
- Breakdown Plan9.3K
- Remember9.3K
- Breakdown Test9.3K
- Add Educational Comments9.3K
- Breakdown Feature Implementation9.2K
- Debian Linux Triage9.2K
- Dataverse Python Advanced Patterns9.2K
- Update Specification9.2K
- Go Mcp Server Generator9.2K
- Rust Mcp Server Generator9.2K
- Create Llms9.2K
- Power Bi Dax Optimization9.2K
- Aspnet Minimal Api Openapi9.2K
- Finnish Humanizer9.2K
- Arch Linux Triage9.1K
- Breakdown Epic Pm9.1K
- Quasi Coder9.1K
- Technology Stack Blueprint Generator9K
- Create Technical Spike9K
- Microsoft Skill Creator9K
- Snowflake Semanticview9K
- Finalize Agent Prompt9K