Localization & Internationalization (i18n/l10n)

Manages i18n/l10n across multiple languages and regions with Next.js integration.

Updated Feb 2, 2026
One-click install
npx skills add https://github.com/fabioc-aloha/AlexCook --skill localization-internationalization-i18n-l10n
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Localization & Internationalization (i18n/l10n)
Source: https://github.com/fabioc-aloha/AlexCook/tree/main/.github/skills/localization
Command: npx skills add https://github.com/fabioc-aloha/AlexCook --skill localization-internationalization-i18n-l10n

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires next-intl, @formatjs/intl-localematcher, negotiator, intl-messageformat, rtl-detect, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the complexity of adapting software applications to function correctly and feel natural in multiple languages and regions, ensuring a consistent user experience worldwide.

Core Features & Use Cases

  • Language Detection: Automatically identifies the user's preferred language based on various signals.
  • Translation Management: Provides patterns for managing translations, including pluralization and dialect-specific variations.
  • RTL Support: Enables proper rendering for right-to-left languages like Arabic and Hebrew.
  • Use Case: A global SaaS product needs to serve users in US English, Brazilian Portuguese, and Japanese. This Skill helps manage the UI translations, date/number formats, and text direction for each locale.

Quick Start

Configure the Next.js middleware to detect and set the user's locale based on the 'Accept-Language' header.

Frequently Asked Questions about Localization & Internationalization (i18n/l10n)

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

FAQPage Schema
How do I add multilingual support to a Next.js app using next-intl?

To add multilingual support, configure Next.js middleware to detect the user's locale from the 'Accept-Language' header. This Skill uses next-intl to manage language detection, BCP 47 tags, and UI translations across multiple regions.

What is ICU MessageFormat and when do I need it for translation management?

ICU MessageFormat is a standard for handling complex string translations, including pluralization and dialect-specific variations. You need it when localizing software applications to ensure grammatically correct dynamic text across different languages.

How do I handle right-to-left (RTL) text direction for languages like Arabic?

To handle RTL text direction, this Skill integrates the 'rtl-detect' dependency. It automatically identifies and applies proper right-to-left rendering for languages like Arabic and Hebrew, ensuring a consistent user experience.

Can I negotiate user locale preferences based on the Accept-Language header?

Yes, you can negotiate user locales using the 'negotiator' and '@formatjs/intl-localematcher' dependencies. This Skill automatically identifies preferred languages by matching BCP 47 tags against the 'Accept-Language' header signals.

What is the best way to format dates and numbers for specific dialects like Brazilian Portuguese?

The best way to format dates and numbers for dialects is utilizing BCP 47 tag handling with next-intl. This Skill provides patterns for dialect-specific adaptations, ensuring correct regional formatting for locales like Brazilian Portuguese.