Skill Press

No. 650 · next-intl-add-language

Adding a Language with next-intl

A field guide from GitHub Awesome Copilot contributors

GitHub Awesome Copilot contributors

When to use it

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

Rank
No. 650 of 971
Installs
Not listed yet
Built for
GitHub Copilot
Runs in
GitHub Copilot
Length
97 words · 1 min
Files
2
License
MIT

Get this skill

Download the skill folder (.zip, 1 KB) ↓ · SKILL.md only ↓

Agent prompt

Paste into a coding agent with terminal access. Check the upstream requirements for the skill you’re installing.

Prompt
Install the "next-intl-add-language" Agent Skill by GitHub Awesome Copilot contributors, from https://github.com/github/awesome-copilot.

1. Fetch the whole folder skills/next-intl-add-language — SKILL.md plus every script, reference, and asset beside it, not just SKILL.md. For example:
   skill_checkout=$(mktemp -d)
   git init "$skill_checkout"
   git -C "$skill_checkout" fetch --depth 1 https://github.com/github/awesome-copilot.git 1683f50e94c9fd489191f73d7c8f7e2bd871bd0c
   git -C "$skill_checkout" checkout --detach FETCH_HEAD
2. Copy it into your skills directory as a folder named "next-intl-add-language":
   - Claude Code: ~/.claude/skills/next-intl-add-language/ (all projects) or .claude/skills/next-intl-add-language/ (this project only)
   - Another agent: the directory you load Agent Skills from (folders containing a SKILL.md)
3. Check that next-intl-add-language/SKILL.md exists and its frontmatter says name: next-intl-add-language.
4. Read SKILL.md, then tell me in two or three sentences what the skill does and when it will trigger, and list any dependencies it mentions (Python packages, npm packages, CLIs) that aren't installed yet. Don't install them without asking.

skills CLI

One command; the skills.sh installer detects your agents (Claude Code, Cursor, Codex, and more).

Terminal
npx skills add https://github.com/github/awesome-copilot/tree/1683f50e94c9fd489191f73d7c8f7e2bd871bd0c/skills/next-intl-add-language --skill next-intl-add-language

The skill, in full

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.

More in Software & Web Development

All Software & Web Development skills →

More from GitHub Awesome Copilot contributors

From github/awesome-copilot at 1683f50, MIT. Install counts from skills.sh.