What problem does it solve?
This Skill addresses the challenge of making the CIC ERP application accessible to a global audience by managing its internationalization (i18n) and localization efforts. It streamlines the process of identifying and replacing hardcoded text with translatable keys, ensuring a consistent and maintainable multilingual experience.
Core Features & Use Cases
- Hardcoded String Detection: Identifies hardcoded Vietnamese strings within the codebase using defined patterns and regular expressions.
- Translation Key Generation: Establishes a structured approach for creating translation keys (e.g.,
module.section.key).
- Locale File Creation: Generates and maintains locale files (e.g.,
vi.json, en.json) in a specified format.
- Translation Hook Implementation: Provides a
useTranslation hook for easy integration of translated strings into the application.
- Use Case: When preparing the CIC ERP for international release, this skill can systematically scan the entire codebase, identify all user-facing Vietnamese text, and generate the necessary translation files and code to support English and other languages.
Quick Start
Scan the codebase for hardcoded Vietnamese strings and prepare locale files for internationalization.