internationalization-i18n

Implements multi-language support with i18next, gettext, and Intl API including RTL handling.

4|Updated May 13, 2026
One-click install
npx skills add https://github.com/RuixeWolf/modbus-simulator --skill internationalization-i18n-ruixewolf
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: internationalization-i18n
Source: https://github.com/RuixeWolf/modbus-simulator/tree/main/.agents/skills/internationalization-i18n
Command: npx skills add https://github.com/RuixeWolf/modbus-simulator --skill internationalization-i18n-ruixewolf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires i18next, react-i18next, i18next-browser-languagedetector, react-intl, babel, and includes references (resource) components.

What problem does it solve? Building applications for a global audience requires handling translations, pluralization, locale-aware date and currency formatting, and right-to-left layouts, which are error-prone when implemented ad hoc. ## Core Features & Use Cases - Translation Management: Set up i18next in React or gettext with Flask/Babel in Python, including language detection and fallback locales. - Locale-Aware Formatting: Format dates, numbers, currencies, and relative time using the Intl API and ICU Message Format for plurals and gendered text. - RTL Support: Apply CSS logical properties and direction detection for Arabic, Hebrew, and other right-to-left languages. - Use Case: You are shipping a React dashboard to users in Germany and Japan. Use this Skill to wire up i18next with language detection, pluralized messages, and locale-correct date and currency display. ## Quick Start Add i18next-based internationalization to my React app with English and Spanish translations, pluralization, and locale-aware date formatting.

Frequently Asked Questions about internationalization-i18n

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add i18next to a React application?▼

Install i18next, react-i18next, and i18next-browser-languagedetector, then initialize i18n with a fallback language and translation resources. Use the useTranslation hook and the t() function to render translated strings in components.

How to handle pluralization in translations?▼

i18next uses suffixes like _zero, _one, and _other on translation keys, selected by passing a count value. For richer control, ICU Message Format supports plural, select, and gender rules in a single message string.

i18next vs react-intl, which should I use?▼

i18next offers a mature ecosystem with language detection and backend loading plugins, while react-intl (Format.js) provides built-in ICU Message Format and rich formatting components like FormattedNumber and FormattedDate. Both are covered in this Skill's references.

How do I support RTL languages like Arabic in CSS?▼

Use CSS logical properties such as margin-inline-start and padding-inline-end instead of left/right properties, and set the dir attribute on the html element based on the locale. Mirror directional icons with transform: scaleX(-1) under [dir="rtl"].

Can I use gettext for translations in a Python Flask app?▼

Yes, use Babel's Translations.load with a locale resolved from URL parameters, cookies, or the Accept-Language header. Extract messages with pybabel extract, initialize catalogs per language, and compile them for production.