π 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)