Skip to content
Skillpedia
APIs & servers (backend)40k · #7308

next-intl-add-language

What it does

This tool helps add a new language to your website built with Next.js and next-intl. It ensures all necessary translations and configurations are updated so your site can be displayed in another language.

When to use it

  • ✓When you want to translate your website into a new language.
  • ✓If you need your website to support multiple languages.
  • ✓When launching your site in a new international market.

Skill link

https://github.com/github/awesome-copilot/blob/main/skills/next-intl-add-language/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/next-intl-add-language/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Add Spanish language to my website.”

5 new skills a week. 1 minute to read.

How it works

The tool finds all English texts, translates them into the new language, and updates configuration files so the website recognizes and uses the new language.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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.
FAQ

Where are the translations stored?

Translations are stored in the './messages' folder of your project.

Which files do I need to edit to add a new language?

You will need to edit the routing and middleware configuration files, as well as the language toggle component.

Do I need to translate everything?

Yes, the goal is to translate all entries from the English language file for a complete translation.

Details

Original description by the author

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

repo: github/awesome-copilot

Popularity

GitHub stars
40k
Ranking position
#7308
License
MIT
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills