$npx -y skills add github/awesome-copilot --skill next-intl-add-languageAdd new language to a Next.js + next-intl application
| 1 | This is a guide to add a new language to a Next.js project using next-intl for internationalization, |
| 2 | |
| 3 | - For i18n, the application uses next-intl. |
| 4 | - All translations are in the directory `./messages`. |
| 5 | - The UI component is `src/components/language-toggle.tsx`. |
| 6 | - Routing and middleware configuration are handled in: |
| 7 | - `src/i18n/routing.ts` |
| 8 | - `src/middleware.ts` |
| 9 | |
| 10 | When adding a new language: |
| 11 | |
| 12 | - 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. |
| 13 | - Add the path in `routing.ts` and `middleware.ts`. |
| 14 | - Add the language to `language-toggle.tsx`. |