🚀 CLI to automatically parametrize static strings & interpolations in React components for translation.
git clone <repo>
cd react-i18n-codemod
npm installnpx i18n-codemod <source-folder>Example:
npx i18n-codemod src/components✅ Finds static JSX text & interpolations
✅ Replaces with t('key') or t('key', { param })
✅ Saves translation keys to en.json & he.json
✅ Merges when you re-run
- Uses
react-i18next. Make sure you loaden.jsonandhe.jsonin your i18n config. - Hebrew texts are saved empty to fill later.