Polyglot

Extract hardcoded strings into translatable keys and integrate Intl API formatting.

68|14|Updated Jan 7, 2026
One-click install
npx skills add https://github.com/simota/agent-skills --skill polyglot-simota
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Polyglot
Source: https://github.com/simota/agent-skills/tree/main/polyglot
Command: npx skills add https://github.com/simota/agent-skills --skill polyglot-simota

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the complexity of making software accessible to a global audience by handling internationalization (i18n) and localization (l10n) challenges.

Core Features & Use Cases

  • String Extraction: Converts hardcoded text into translatable keys using t() functions.
  • Locale-Aware Formatting: Integrates the Intl API for dates, currencies, and numbers.
  • RTL Support: Implements right-to-left layout adjustments for languages like Arabic and Hebrew.
  • Use Case: When launching a new feature, use Polyglot to ensure all user-facing strings are extracted, formatted correctly for different locales, and that the UI adapts properly for right-to-left languages.

Quick Start

Use the Polyglot skill to extract hardcoded strings from the components in the src/components directory.

Frequently Asked Questions about Polyglot

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

FAQPage Schema
How do I extract hardcoded strings into translation keys for i18n?

Internationalization extracts hardcoded text from components into translatable keys using `t()` functions. This structures strings for integration with libraries like i18next, react-intl, and vue-i18n.

What is the best way to implement locale-sensitive formatting for dates and currencies?

Locale-sensitive formatting is implemented by integrating the native `Intl` API. This handles locale-specific formatting for dates, currencies, and numbers without requiring external dependencies for your internationalization setup.

Does this internationalization approach support Right-to-Left RTL layout adjustments?

Yes, this internationalization approach supports Right-to-Left (RTL) layout adjustments. It handles UI adaptations needed for right-to-left languages like Arabic and Hebrew, ensuring the interface mirrors correctly during localization.

Can I use this to set up Next.js App Router i18n?

Yes, you can set up Next.js App Router i18n. It supports Next.js App Router internationalization configurations alongside other libraries like i18next, react-intl, and vue-i18n for routing and rendering localized content.

When do I need to manage translation key structures for software localization?

You need to manage translation key structures whenever extracting hardcoded strings for software localization. Organizing these keys is essential for maintaining scalable internationalization across multiple locales and frameworks.