DEV Community

Cover image for auto-translation V2 is here πŸ”₯
Asad Rafi
Asad Rafi

Posted on

auto-translation V2 is here πŸ”₯

πŸš€ 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)