What problem does it solve?
UI codebases often ship with hard-coded strings, missing translations, and inconsistent locale files. This Skill sets up an internationalization framework, replaces raw user-facing text with translation keys, and validates key parity across en-US and zh-CN locale files.
Core Features & Use Cases
- Framework Setup: Installs and configures i18n libraries such as react-i18next, next-intl, or vue-i18n, including provider wiring, language switchers, and locale persistence.
- Automated Key Auditing: Runs scripts/i18n_audit.py to extract t('key') usage from source files and report missing, unused, and parity-mismatched keys across locale JSON files.
- String Replacement & Error Localization: Converts hard-coded JSX text, aria-labels, and placeholders into namespaced keys, and maps error codes to localized messages instead of exposing raw error.message values.
- Use Case: A React app preparing to launch in China needs full zh-CN coverage. Use this Skill to wire up react-i18next, replace all hard-coded strings, generate zh-CN translations, and verify zero missing keys before release.
Quick Start
Audit my React src directory for missing i18n keys against my en-US and zh-CN locale files and replace any hard-coded UI strings with translation keys.