next-intl-add-language — GitHub Copilot skill: add a language
Adds a language to a Next.js app using next-intl by translating en.json and updating locale setup. Use it when a new locale must appear in the UI.
npx skills add github/awesome-copilot --skill next-intl-add-languageWhat next-intl-add-language does
This skill guides language additions for a Next.js project that uses next-intl for internationalization. It calls for translating every entry from en.json and keeping the full translation set in ./messages.
The locale must be added to src/i18n/routing.ts and src/middleware.ts, then exposed through src/components/language-toggle.tsx. Install it if your project follows this next-intl layout; it is too narrow for projects with a different translation structure.
What it helps with
- translate every key from
en.jsoninto a new language - add a locale in
src/i18n/routing.ts - update locale middleware in
src/middleware.ts - show the new language in
language-toggle.tsx
Example prompts for the agent
- “Add Spanish following the next-intl-add-language skill.”
- “Translate `en.json` for a new locale and check that every key is covered.”
- “Update `src/i18n/routing.ts`, `src/middleware.ts`, and `src/components/language-toggle.tsx` for the new language.”
How to install next-intl-add-language
1Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill next-intl-add-language2GitHub CLI
gh skill install github/awesome-copilot next-intl-add-language3Manually: put the files in place
.github/skills/next-intl-add-language/SKILL.md1Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill next-intl-add-language -a claude-code2Manually: put the files in place
~/.claude/skills/next-intl-add-language/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/next-intl-add-language/
Manually: put the files in place
.agents/skills/next-intl-add-language/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/next-intl-add-language/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
Platform CLI
gemini skills install https://github.com/github/awesome-copilot --path skills/next-intl-add-languageManually: put the files in place
.devin/skills/next-intl-add-language/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set554
The whole set →Similar
Questions about next-intl-add-language
How do I install next-intl-add-language in GitHub Copilot?
Run npx skills add github/awesome-copilot --skill next-intl-add-language. You can also use gh skill install github/awesome-copilot next-intl-add-language.
What does next-intl-add-language do?
The skill walks through adding a locale to a Next.js project using next-intl. It covers translations, routing, middleware, and the language switcher.
Which files change when I add a language?
Translations live in ./messages. Routing and middleware are handled in src/i18n/routing.ts and src/middleware.ts, while the UI switcher is src/components/language-toggle.tsx.
Source text
SKILL.md · MIT
--- 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`.
© github · MIT · github/awesome-copilot