What problem does it solve?
This Skill prevents inconsistent or hardcoded UI text by guiding you to add internationalization keys and translations in LobeHub’s react-i18next setup, so every user-facing string can be discovered and translated reliably.
Core Features & Use Cases
- Key creation and naming: Enforces a flat dot-notation key pattern like
{feature}.{context}.{action} to avoid collisions and keep translations maintainable.
- Namespace wiring: Helps you register new namespaces in
src/locales/default/index.ts so t() calls resolve correctly across features.
- Translation workflow: Supports both automated generation via
pnpm i18n and manual zh-CN/en-US updates for dev preview without touching the wrong files.
Quick Start
Add your new user-facing string by creating a new flat dot-notated key under src/locales/default/{namespace}.ts, then translate the corresponding zh-CN/en-US JSON for dev preview or run pnpm i18n before opening a PR.