🚀 auto-translation v2 – The CLI that makes i18n effortless!
Tired of manually setting up translations? This CLI tool automates everything for React:
🔥 What it does:
Extracts all text from components
Wraps with t() functions
Generates organized i18n files with a single init file
Supports multiple modes: React.js (v2), Node.js & React Native coming soon)
Each mode controls which commands you can run
React mode: init, wrap, scan, file-update
⏱️ Quick workflow:
1️⃣ npx auto-translation init → File-based setup & single file based & install dependencies setup etc .
2️⃣ import './i18n' → Root component
3️⃣ npx auto-translation wrap → Auto-wrap text
4️⃣ npx auto-translation scan → Detect new strings
5️⃣ npx auto-translation file-update → Clean & sync translations
💡 Result: Full i18n setup in 30–40 seconds instead of hours!
CLI-based, fast, and mode-aware. Perfect for React projects. ⭐
https://www.npmjs.com/package/auto-translation
https://github.com/asadrafi1221/auto_translate_npm_package
Top comments (0)