What problem does it solve?
It prevents hardcoded UI strings from getting stuck in one language by guiding you to store translations using consistent, collision-resistant i18next key patterns.
Core Features & Use Cases
- React i18next localization guidance: Supports using
useTranslation, t(...), and namespace-driven translations for user-facing text in .tsx/.ts.
- Flat dot-notation key convention: Enforces
{feature}.{context}.{action|status} keys (with {{variable}} interpolation) to keep translations organized and avoid key conflicts.
- Development workflow for multi-language preview: Ensures new keys and namespaces are wired into
src/locales/default/index.ts and that zh-CN/en-US preview JSON can be updated for review.
Quick Start
Use i18n to add new UI strings by creating or updating keys in src/locales/default/{namespace}.ts, exporting the namespace in src/locales/default/index.ts, then run pnpm i18n to generate translations before you open a PR.