skillfed

internationalization-i18n

This skill provides comprehensive guidance for adding multi-language capabilities to applications. It covers translation workflows, locale-aware formatting for dates and numbers, pluralization handling across languages, and support for right-to-left scripts. Learn to integrate popular i18n libraries, manage translation strings effectively, and implement language detection and switching.

Internationalization (i18n) & Localization helps you implement multi-language support with translation management, formatting, and RTL language handling.

AI-generated summary based on this skill's SKILL.md

299 45 MIT updated by aj-geddes

Install

aj-geddes/useful-ai-prompts/internationalization-i18n · repository language: Shell

CLI (skillfed)coming soon
git clone https://github.com/aj-geddes/useful-ai-prompts
cp -r useful-ai-prompts/skills/internationalization-i18n ~/.claude/skills/internationalization-i18n

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I implement i18n in my app?

internationalization-i18n provides comprehensive guidance for adding multi-language capabilities to your application. Start by selecting an i18n library like i18next, gettext, or React-Intl based on your tech stack. The skill covers integration steps, string extraction workflows, locale detection, and language switching mechanisms. You'll learn to organize translation files, manage pluralization rules across languages, and implement locale-aware formatting for dates, times, numbers, and currency to ensure your app works seamlessly for global users.

What are the best practices for translation management?

internationalization-i18n emphasizes establishing a structured translation workflow as a core best practice. This includes extracting translatable strings into catalogs, organizing translation files by locale, and managing pluralization rules for each language. The skill guides you through setting up translation management systems, handling pseudo-localization for testing, and coordinating with translators. Proper workflows prevent string duplication, ensure consistency across your application, and make it easier to add new languages or update existing translations without disrupting your codebase.

How should I format dates, times, numbers, and currency for different locales?

internationalization-i18n teaches locale-aware formatting as essential for global applications. Different regions use distinct date formats (DD/MM/YYYY vs MM/DD/YYYY), number separators (commas vs periods), and currency symbols. The skill shows how to leverage i18n libraries to automatically format these elements based on user locale. You'll learn to handle edge cases like timezone conversion, regional number grouping, and currency precision. Proper formatting improves user experience by displaying information in familiar formats and prevents confusion or errors in data interpretation.

How do I add RTL language support for Arabic and Hebrew?

internationalization-i18n covers right-to-left language support as a specialized but critical capability. Beyond simple text direction, RTL implementation requires adjusting layout, text alignment, and component positioning. The skill guides you through CSS strategies for bidirectional text, managing text direction in your DOM, and testing RTL layouts. You'll learn how to detect RTL languages, apply appropriate styling frameworks, and ensure UI components (buttons, forms, navigation) work correctly in both LTR and RTL contexts. Proper RTL support demonstrates respect for diverse user bases and expands your app's accessibility.

What i18n libraries should I use and how do I set them up?

internationalization-i18n compares major i18n libraries including i18next, gettext, and React-Intl to help you choose the right fit. i18next offers flexibility and works across frameworks; gettext is language-agnostic and widely used in backend systems; React-Intl integrates deeply with React applications. The skill provides setup and configuration guidance for each, covering namespace organization, plugin installation, and initial configuration. You'll learn how to structure your project for easy library integration, configure locale detection, and establish translation file formats that work with your chosen library and development workflow.

How do I handle pluralization rules and string extraction?

internationalization-i18n addresses pluralization and string extraction as foundational i18n tasks. Pluralization rules vary significantly across languages—English uses simple singular/plural, while some languages have five or more plural forms. The skill teaches you to define pluralization rules in your i18n configuration and use library-specific syntax to handle them. String extraction involves identifying all user-facing text, removing it from code into translation catalogs, and maintaining references. You'll learn automated extraction tools, managing translation keys, and ensuring no strings are missed during the extraction process.

SKILL.md

rendered from the published skill — quoted content, verbatim

Internationalization (i18n) & Localization

Table of Contents

Overview

Comprehensive guide to implementing internationalization and localization in applications. Covers message translation, pluralization, date/time/number formatting, RTL languages, and integration with popular i18n libraries.

When to Use

  • Building multi-language applications
  • Supporting international users
  • Implementing language switching
  • Formatting dates, times, and numbers for different locales
  • Supporting RTL (right-to-left) languages
  • Extracting and managing translation strings
  • Implementing pluralization rules
  • Setting up translation workflows

Quick Start

Minimal working

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 12 files
skills/internationalization-i18n/SKILL.md
skills/internationalization-i18n/references/date-and-time-formatting.md
skills/internationalization-i18n/references/i18next-javascripttypescript.md
skills/internationalization-i18n/references/locale-detection.md
skills/internationalization-i18n/references/number-and-currency-formatting.md
skills/internationalization-i18n/references/pluralization-rules.md
skills/internationalization-i18n/references/python-i18n-gettext.md
skills/internationalization-i18n/references/react-intl-formatjs.md
skills/internationalization-i18n/references/rtl-right-to-left-language-support.md
skills/internationalization-i18n/references/server-side-i18n.md
skills/internationalization-i18n/references/translation-management.md
skills/internationalization-i18n/templates/component-template.tsx

Related skills

Tags

multi-language-apps translation-workflow locale-formatting rtl-support message-catalogs language-detection pluralization-engine localization-tools