Safe i18n Manager

•
45
•

Automates the safe extraction of hardcoded strings into internationalization frameworks while preventing frontend code corruption.

The cm-safe-i18n skill provides a battle-tested protocol for mass internationalization (i18n) conversions in frontend applications. Designed to mitigate risks associated with large-scale code transformations, it enforces a strict multi-pass batching process limited to 30 strings per pass and implements an 8-gate audit system to verify JavaScript syntax, HTML integrity, and JSON validity. This skill is particularly useful for teams migrating legacy monoliths to dynamic translation systems, as it prevents common pitfalls like variable shadowing, broken HTML tags, and translation key disparity across multiple language files.

주요 기능

0145 GitHub stars
02Parallel Language Sync: Dispatches multiple agents simultaneously to translate and sync keys across different locales.
03Batch-Limited Extraction: Enforces a 30-string maximum per pass to ensure manageable and safe code changes.
048-Gate Audit Protocol: Automated verification of syntax, corruption patterns, and HTML integrity.
05HTML Tag Protection: Specific logic to prevent corruption of attributes, tags, and comments during string replacement.
06Key Parity Verification: Automated checks to ensure all language files have identical keys and no empty values.

사용 사례

01Extracting hundreds of hardcoded strings from a legacy frontend monolith to a translation library.
02Migrating existing i18n namespaces or patterns across large-scale JavaScript codebases.
03Adding support for new languages while maintaining 100% key parity with the primary locale.