/web-framework-development:next-intl-add-languagefrom web-framework-development
Adds a new locale to a Next.js app using next-intl: creates message JSON, updates routing, middleware, and language toggle UI. Invoke when asked to add a language, locale, translation file, or language selector option.
Ships in web-framework-development. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Add a complete locale to a Next.js + next-intl project by translating message JSON, wiring routing and middleware, updating the language toggle, and validating that every locale has the same message keys.
./messages."src/components/language-toggle.tsx."| Concern | Repository location | Required change |
|---|---|---|
| Translation files | ./messages | Create the new locale JSON by translating all entries from en.json. |
| Source locale | ./messages/en.json | Treat keys and nesting as the complete schema. |
| Language toggle UI | src/components/language-toggle.tsx | Add the new language option, label, and locale value. |
| Routing | src/i18n/routing.ts | Add the locale to the next-intl routing configuration. |
| Middleware | src/middleware.ts | Add or confirm the locale is accepted by middleware matching/routing. |
es, fr, pt-BR, or another BCP 47-style tag already consistent with the project../messages/en.json and preserve its complete key structure in the new locale file.src/i18n/routing.ts so next-intl knows the new locale.src/middleware.ts so requests for the new locale route correctly.src/components/language-toggle.tsx so users can select the language.en.json and the new file.| Rule | Why it matters |
|---|---|
| Preserve every JSON key exactly. | next-intl lookups fail when keys are missing or renamed. |
Preserve interpolation placeholders such as {name}. | Translations must not break runtime formatting. |
| Preserve rich-text tags or markup placeholders. | next-intl rich messages depend on matching tag names. |
Use locale codes consistently across ./messages, routing.ts, middleware.ts, and language-toggle.tsx. | Mixed pt/pt-BR values cause routing and selector bugs. |
| Keep JSON valid and sorted only if the source file is sorted. | Avoid noisy diffs unrelated to the added locale. |
en.json entries.src/i18n/routing.ts and src/middleware.ts.{count}, {name}, and tag names inside rich messages must remain intact.## next-intl language addition
**Status:** complete | needs translation review | blocked
**Locale:** `<locale-code>`
| File | Change | Validation |
| --- | --- | --- |
| `./messages/<locale>.json` | translated from `en.json` | JSON valid; key parity pass/fail |
| `src/i18n/routing.ts` | locale added | route config includes locale pass/fail |
| `src/middleware.ts` | locale accepted | middleware includes locale pass/fail |
| `src/components/language-toggle.tsx` | language option added | UI option includes locale pass/fail |
**Human review needed:** <translation nuance, if any>
./messages and mirrors every key from en.json.en.json is translated or explicitly justified as intentionally unchanged.src/i18n/routing.ts includes the locale.src/middleware.ts accepts/routes the locale.src/components/language-toggle.tsx exposes the locale to users.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/chrome-devtoolsHandle `browser-related` tasks and control a live Chrome browser through Chrome DevTools MCP for browser automation, visual inspection, debugging, performance analysis, and emulation. Use when navigating pages, clicking elements, filling forms, handling `alerts/prompts.`, taking snapshots or screenshots, inspecting console and network activity, evaluating JavaScript, profiling Core Web Vitals, or testing viewport and network conditions./gsap-framer-scroll-animationBuild production scroll animations and scroll effects in vanilla JS, React, or Next.js using GSAP ScrollTrigger or Framer Motion/Motion v12. Use when asked for scroll-triggered reveals, parallax, pinned sections, horizontal scroll, scrubbed timelines, ScrollSmoother, matchMedia, useScroll, useTransform, useSpring, whileInView, variants, sticky sections, Apple-like scroll, progress bars, entrance animations, or GitHub Copilot prompts for scroll motion./markstream-installInstall and configure Markstream streaming Markdown renderers for Vue, React, Svelte, Angular, Nuxt, Next.js, and Vue 2 applications. Use when adding streaming Markdown to AI chat or document interfaces, repairing Markstream styles or SSR, or choosing static, smooth-streaming, or externally parsed AST input./react-container-presentation-componentCreate a React Container/Presentation component under src/components with TypeScript, Storybook, SCSS module, ui/features classification, optional Mantine replacement, and validation. Use when explicitly asked for a Container/Presentation component or when running /react-container-presentation-component.npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin web-framework-developmentOther plugins' skills for the same job