i18n-nextjs-rules
CommunityRobust i18n for Next.js App Router
Authormauriciodelrio
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides clear, production-oriented guidance to implement internationalization in Next.js App Router projects, removing uncertainty around locale routing, message organization, pluralization, date/number formatting, RTL layout, and middleware-based locale detection.
Core Features & Use Cases
- next-intl setup: Configure routing, locale list, and re-export typed message bundles for Server and Client Components.
- Translation APIs: Use useTranslations in components and getTranslations in Server Actions to load scoped messages.
- ICU MessageFormat & formatting: Use ICU for plurals/select and useFormatter for dates, numbers, currency, relative time and lists.
- File organization: Split translations by feature for large apps and merge at runtime.
- RTL & accessibility: Detect RTL locales to set html dir and prefer logical CSS properties to adapt UI.
- Middleware locale detection: Implement URL → Cookie → Accept-Language → default fallback using next-intl middleware matcher.
- Use Case: Build a multi-locale storefront that shows localized product counts, currency formatting, and RTL layouts while automatically detecting the user's locale.
Quick Start
Configure next-intl routing and a messages directory, add middleware that detects locale by URL then cookie then Accept-Language with a default fallback, and use useTranslations/getTranslations and useFormatter in your components.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: i18n-nextjs-rules Download link: https://github.com/mauriciodelrio/delriodev-skills/archive/main.zip#i18n-nextjs-rules Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.