Browse / Developer Tools / i18n Enforcer

i18n Enforcer

Enforces internationalization best practices by preventing hardcoded text and ensuring consistent translation implementation across UI components.

SkillDeveloper ToolsPatterns ArchitectureAgent Behavior

The source repository doesn't declare a license. Check its terms before reusing the code.

Key features

  • Standardized implementation guidance for the useTranslations hook and namespaces
  • Zero-tolerance enforcement against hardcoded strings in JSX/TSX elements
  • Automated verification for localized aria-labels, alt text, and placeholders
  • Multi-locale synchronization across English, Portuguese, Spanish, and French
  • Support for complex translation patterns including dynamic interpolation and pluralization

Use cases

  • Creating new UI components or pages that must support multiple languages from the start
  • Auditing pull requests to ensure compliance with internationalization standards
  • Refactoring legacy codebases to remove hardcoded text and improve accessibility

FAQ

Can this skill handle complex translation patterns?

Absolutely. It is designed to handle advanced i18n requirements including dynamic interpolation (variables within strings) and complex pluralization rules across different languages.

When should I use this skill?

You should use this skill whenever you are creating new UI components, editing existing pages, or performing a code review. It is particularly useful for ensuring compliance in projects like Breath of Now where zero-tolerance for hardcoded text is a core requirement.

What does the i18n Enforcer Claude Code skill do?

The i18n Enforcer is a specialized capability for Claude Code that prevents hardcoded text in UI components. It enforces internationalization best practices by ensuring all visible strings are routed through the next-intl translation system and synchronized across English, Portuguese, Spanish, and French locales.

How does it improve my development workflow?

It automates the tedious parts of localization by identifying hardcoded strings in JSX/TSX, suggesting the correct useTranslations hook implementation, and verifying that translation keys are added to all supported language files simultaneously.

Does it support accessibility features like ARIA labels and Alt text?

Yes. The i18n Enforcer provides automated verification for localized aria-labels, image alt text, and input placeholders, ensuring your application remains both accessible and fully translated for every user.