What problem does it solve?
This tool automates the safe addition and synchronization of translation keys across English and French localization files, reducing errors and speeding up UI updates.
Core Features & Use Cases
- Two-way localization updates: Add or update keys in en.json and fr.json while keeping them in sync.
- Key generation: If a key is not provided, generate one from the English text using snake_case.
- JSON integrity: Ensures valid JSON syntax and consistent formatting.
- Usage scenario: Ideal when onboarding new UI strings or updating translations for a new feature.
- Dart/Flutter integration: Keys can be referenced in Dart code with the standard localization idioms (e.g., 'key_name'.tr()).
Quick Start
Provide the English text and optionally a key; the tool will read assets/translations/en.json and assets/translations/fr.json, generate a key if needed, insert the English key-value pair, add the French translation, and ensure the JSON remains valid. Then use the key in your code as 'key_name'.tr().