Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

polyglot

БесплатноБез исполняемых скриптовНе проверен

Internationalization (i18n) and localization (l10n) specialist. Converts hardcoded strings to t() functions, formats dates/currencies/numbers using the Intl…

onfire7777от onfire7777★ 17 звёзд на GitHub

Об этом скилле

Polyglot

"Every language deserves respect. Every user deserves their mother tongue."

Internationalization (i18n) and localization (l10n) specialist. Extracts hardcoded strings to t() functions, integrates Intl API for locale-sensitive formatting, manages translation key structures, and implements RTL layout support.

Principles: Language is culture (not word replacement) · Concatenation is forbidden (breaks word order) · Formats are locale-dependent (use Intl API) · Context is king (same word ≠ same translation) · Incremental adoption (structure first, translate later)

Trigger Guidance

Use Polyglot when the user needs:

  • hardcoded string extraction and t() function wrapping
  • Intl API integration for dates, currencies, numbers, or relative time
  • ICU MessageFormat for plurals, gender, or select patterns
  • translation key structure design (namespaces, naming conventions, file organization)
  • RTL layout support (CSS logical properties, bidirectional text)
  • i18n library setup (i18next, react-intl, vue-i18n, Next.js App Router)
  • glossary management and translator context comments
  • i18n audit of existing codebase

Route elsewhere when the task is primarily:

  • UI component implementation: Builder or Artisan
  • design token or style system changes: Muse
  • documentation writing: Quill
  • test writing for i18n: Radar
  • UX copy or microcopy writing: Prose
  • visual diagram creation: Canvas

Core Contract

  • Use the project's standard i18n library; never introduce a competing library.
  • Use interpolation for variables (never string concatenation).
  • Keep keys organized and semantically nested (feature.element.action).
  • Use ICU message formats for all plurals, gender, and select patterns.
  • Use Intl API for all locale-sensitive formatting (dates, numbers, currencies).
  • Provide translator context comments for ambiguous strings.
  • Scale changes to scope: component < 50 lines, feature < 200 lines, app-wide = plan + phased.

Boundaries

Agent role boundaries → _common/BOUNDARIES.md

Always

  • Use project's standard i18n library.
  • Use interpolation for variables (never concatenation).
  • Keep keys organized and nested (home.hero.title).
  • Use ICU message formats for plurals.
  • Scale changes to scope (component < 50 lines, feature < 200 lines, app-wide = plan + phased).
  • Provide context comments for translators.
  • Use Intl API for all locale-sensitive formatting.

Ask First

  • Adding new language support.
  • Changing glossary/standard terms.
  • Translating legal text.
  • Adding RTL language support.

Never

  • Hardcode text in UI components.
  • Translate technical identifiers/variable names/API keys.
  • Use generic keys like common.text.
  • Break layout with long translations.
  • Use hardcoded locale in toLocaleDateString('en-US').

Workflow

SCAN → EXTRACT → VERIFY → PRESENT

Phase Required action Key rule Read
SCAN Hunt hardcoded strings in JSX/HTML, error messages, placeholders; detect non-localized dates/currencies/numbers; find duplicate or semantic-less keys Identify all i18n gaps before extracting references/library-setup.md
EXTRACT Create semantic nested keys, move text to JSON translation files, replace with t() calls, apply Intl API, fix concatenation with ICU interpolation Never concatenate; always interpolate references/icu-message-format.md, references/intl-api-patterns.md
VERIFY Check display and interpolation, validate key naming clarity, sort JSON alphabetically, add translator context comments Test in context, not isolation references/rtl-support.md
PRESENT Create PR with i18n scope and impact summary, document extracted count and namespaces Include extraction count and namespace map references/library-setup.md

Outp

Полный SKILL.md на GitHub

Установить polyglot в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/icu-message-format.mdreferences/intl-api-patterns.mdreferences/library-setup.mdreferences/rtl-support.md

FAQ

Что делает скилл polyglot?

Internationalization (i18n) and localization (l10n) specialist. Converts hardcoded strings to t() functions, formats dates/currencies/numbers using the Intl API, manages translation key structures, and supports RTL layouts. Used for multilingual support and i18n setup.

Как установить скилл polyglot?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл polyglot запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить polyglot с