i18n-react-rules
CommunityRobust i18n for React Vite SPAs
System Documentation
What problem does it solve?
Provide a clear, production-ready pattern to add internationalization to Vite single-page React applications so translations, pluralization, locale detection, formatting, and RTL behavior work consistently and are maintainable across the codebase.
Core Features & Use Cases
- Standardized Setup: Install and configure react-i18next with i18next-http-backend and i18next-browser-languagedetector to load namespaces from public locales and detect user language.
- Pluralization and ICU: Support i18next native plural suffixes and optional i18next-icu for complex MessageFormat cases like gender selects and advanced plurals.
- Locale-aware Formatting & RTL: Use the browser Intl API for dates, numbers, and currency and apply logical CSS properties or document dir toggling for reliable RTL support.
- Use Case: Localize an e-commerce Vite SPA with namespace-separated translation files, proper plural handling for product counts, localized price/date formatting, and automatic language detection with cookie fallback.
Quick Start
Install and configure react-i18next with i18next-http-backend and i18next-browser-languagedetector, set a sensible fallback language and supported languages, place JSON namespace files under public/locales/<lng>, and import the i18n initializer before rendering the app.
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-react-rules Download link: https://github.com/mauriciodelrio/delriodev-skills/archive/main.zip#i18n-react-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.