next-intl-i18n

next-intl-i18n is a skill for Claude Code, Codex from s0vers/next-app-i18n-starter. It costs 123 tokens per session (1,756 once invoked), scanned A, original, MIT.

An implementation and troubleshooting guide for next-intl in a Next.js App Router project. next-intl is a library for showing translated messages, dates, numbers, and locale-specific pages.

In plain words
What is it for?
Adding or changing locales, fixing translated messages, locale URLs, redirects, language switchers, right-to-left or CJK layouts, formatted values, and translated error pages.
Why use it?
Internationalized sites can show the wrong language, URL, direction, message, or formatting when their settings disagree. The guide helps trace those mismatches before changing code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

Good fit Adding or changing locales, fixing translated messages, locale URLs, redirects, language switchers, right-to-left or CJK layouts, formatted values, and translated error pages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/s0vers/next-app-i18n-starter/next-intl-i18n
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add s0vers/next-app-i18n-starter --skill next-intl-i18n
Clone the repo
git clone --depth 1 https://github.com/s0vers/next-app-i18n-starter

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for next-intl-i18n

README.md
[![agentmods](https://agentmods.dev/badge/skills/s0vers/next-app-i18n-starter/next-intl-i18n/github.svg)](https://agentmods.dev/skills/s0vers/next-app-i18n-starter/next-intl-i18n)
Your own site
<a href="https://agentmods.dev/skills/s0vers/next-app-i18n-starter/next-intl-i18n"><img src="https://agentmods.dev/badge/skills/s0vers/next-app-i18n-starter/next-intl-i18n/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for next-intl-i18n

Your own site · 80×15
<a href="https://agentmods.dev/skills/s0vers/next-app-i18n-starter/next-intl-i18n"><img src="https://agentmods.dev/badge/skills/s0vers/next-app-i18n-starter/next-intl-i18n.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 123 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,756 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00123 $0.01756
Opus 5.5 $0.00049 $0.00702
Sonnet 5.5 $0.00025 $0.00351
Haiku 4.5 $0.00012 $0.00176

Measured 16d ago against content hash a3b7163c1d63, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

next-intl-i18n scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/check-locales.mjs, scripts/check-messages.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/next-intl-i18n/SKILL.md · 75 lines

How it starts

The opening of the file, as written. The whole thing — 75 lines — stays where its author put it; the contents beside it link to each section on GitHub.

next-intl in a Next.js App Router project

Five things must agree for every locale: the URL, the rendered language (lang and dir), the messages, the navigation, and the formatting. Every i18n bug is one of the five disagreeing with another. Find which pair disagrees before editing.

Both libraries move fast, and each reference dates its sources. Read the installed version in package.json before applying an example.

Recon

Always read package.json (next and next-intl versions) and the nearest AGENTS.md. Then read by task.

Task Also read
A message or a formatted value dictionary/en.json and one other locale for the namespace, src/i18n/request.ts, src/i18n/regional.ts, global.d.ts
A redirect, prefix, cookie, or switcher problem src/i18n/routing.ts, src/proxy.ts, next.config.ts, and host redirect rules (vercel.json, CDN)
Rendering, static output, or a new page request.ts, [locale]/layout.tsx, the affected page
A new locale src/i18n/locales.ts, every file in dictionary/, the layout, LanguageSwitcher.tsx, HomeIndex.tsx

Recon is done when you can answer, one line each: which API path (below), which locale source, which rendering mode (static, dynamic, cached). A message-only task answers the last two with "unchanged".

If the config already does what the user asks, the fault is the deployment or a stale cache, not the source. Check the deployed response before editing.

API path Signals Locale reaches server code through
Root params Next >= 16.3 and [locale] hosts <html> next/root-params, automatic inside getTranslations
Legacy requestLocale in request.ts, setRequestLocale in pages Explicit setRequestLocale(locale) before any next-intl call

requestLocale and setRequestLocale are deprecated since next-intl 4.13.6 and 4.13.5. They still work. On an installed version older than 4.13.5 the deprecation does not apply yet, and the legacy path is simply current. Migrate one only when the task says so, and follow the migration steps in architecture.

Read the full file on GitHub · 75 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago First seen · 75 lines · 123 tokens per session scan A a3b7163c1d63

Subscribe to this mod's changes

next-intl-i18n is a skill published in the GitHub repository s0vers/next-app-i18n-starter (66 stars, last pushed 6d ago), licensed MIT. It adds 123 tokens to every session and 1,756 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-30.

Related

Other skills, from other repositories

tanstack-form

Headless, performant, and type-safe form state management for TS/JS, React, Vue, Angular, Solid, Lit, and Svelte.

Kiranism/next-shadcn-dashboard-starter · 34 tokens

ultracite

Ultracite is a zero-config linting and formatting preset for JavaScript/TypeScript projects. Use when: (1) Setting up or initializing Ultracite in a project (ultracite init), (2) Running linting or formatting commands (check, fix, doctor), (3) Writing or reviewing JS/TS code in a project that uses Ultracite — to…

agustinusnathaniel/nextarter-tailwind · 142 tokens

next-upgrade

Upgrade Next.js to the latest version following official migration guides and codemods.

agustinusnathaniel/nextarter-tailwind · 19 tokens

vercel-composition-patterns

React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.

agustinusnathaniel/nextarter-tailwind · 58 tokens

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance…

agustinusnathaniel/nextarter-tailwind · 67 tokens

vercel-react-view-transitions

Guide for implementing smooth, native-feeling animations using React's View Transition API ( component, addTransitionType, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter/exit of components…

agustinusnathaniel/nextarter-tailwind · 127 tokens