What problem does it solve?
i18n (internationalization) toolkit for projects using i18next. Provides three main functions: (1) i18n-check - Detect hardcoded Chinese text in HTML/JS files, (2) i18n-fix - Replace hardcoded text with i18n markers, (3) i18n-sync - Align translation keys across multiple languages (zh-CN, en, ja, ko, zh-TW). Use when working on internationalization tasks, detecting untranslated strings, or syncing locale files.
Core Features & Use Cases
- i18n-check: Detects hardcoded Chinese strings in frontend HTML/JS and reports locations for replacement.
- i18n-fix: Replaces hardcoded text with i18n markers and fallback logic in code.
- i18n-sync: Synchronizes keys across locale files (zh-CN, en, ja, ko, zh-TW) to ensure consistency.
- Use Case: Teams migrating a project to i18n where multiple languages must be supported and kept in sync.
Quick Start
Run i18n-check on your frontend to detect hardcoded Chinese strings, then run i18n-fix to replace them with i18n markers, and finally run i18n-sync to align all locale files.