Skip to content

feat(engineering): add i18n-localization skill#850

Open
asadbekXodjayev wants to merge 1 commit into
alirezarezvani:devfrom
asadbekXodjayev:feature/i18n-localization-skill
Open

feat(engineering): add i18n-localization skill#850
asadbekXodjayev wants to merge 1 commit into
alirezarezvani:devfrom
asadbekXodjayev:feature/i18n-localization-skill

Conversation

@asadbekXodjayev

@asadbekXodjayev asadbekXodjayev commented Jun 13, 2026

Copy link
Copy Markdown

Adds an internationalization/localization engineering skill — a gap in the repo (i18n was only mentioned incidentally inside email-template-builder and cmo-advisor; no dedicated implementation skill existed).

Covers the discipline end to end: route every user-facing string through one i18n layer, keep all locale files in sync, format numbers/dates/currency via Intl (not translation keys), backend-enum mapping, locale-prefixed routing, pluralization, and RTL.

Ships a stdlib-only Python tool, scripts/locale_key_drift.py, that detects the four failure modes that ship broken translations across locale files: missing keys, extra keys, empty values, and placeholder mismatches ({{count}} vs {{cnt}}). CLI-first with --help/--json and exit codes 0/1/2, so it can gate CI.

  • SKILL.md: name+description frontmatter only, 146 lines, opinionated, anti-patterns + cross-references sections
  • references/i18n-patterns.md: namespaces vs flat files, pluralization, Intl, locale routing, RTL, SSR/Next.js, missing-key strategy

Summary

Checklist

  • Target branch is dev (not main — PRs to main will be auto-closed)
  • Skill has SKILL.md with valid YAML frontmatter (name, description, license)
  • Scripts (if any) run with --help without errors
  • No hardcoded API keys, tokens, or secrets
  • No vendor-locked dependencies without open-source fallback
  • Follows existing directory structure (domain/skill-name/SKILL.md)

Type of Change

  • New skill
  • Improvement to existing skill
  • Bug fix
  • Documentation
  • Infrastructure / CI

Testing

Adds an internationalization/localization engineering skill — a gap in the
repo (i18n was only mentioned incidentally inside email-template-builder and
cmo-advisor; no dedicated implementation skill existed).

Covers the discipline end to end: route every user-facing string through one
i18n layer, keep all locale files in sync, format numbers/dates/currency via
Intl (not translation keys), backend-enum mapping, locale-prefixed routing,
pluralization, and RTL.

Ships a stdlib-only Python tool, scripts/locale_key_drift.py, that detects the
four failure modes that ship broken translations across locale files:
missing keys, extra keys, empty values, and placeholder mismatches
({{count}} vs {{cnt}}). CLI-first with --help/--json and exit codes 0/1/2,
so it can gate CI.

- SKILL.md: name+description frontmatter only, 146 lines, opinionated,
  anti-patterns + cross-references sections
- references/i18n-patterns.md: namespaces vs flat files, pluralization,
  Intl, locale routing, RTL, SSR/Next.js, missing-key strategy

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant