localizely_gen 1.0.2+1 copy "localizely_gen: ^1.0.2+1" to clipboard
localizely_gen: ^1.0.2+1 copied to clipboard

CLI tool to generate localization files from JSON using Google Translate.

🈯 localizely_gen #

localizely_gen is a Dart CLI tool that generates localization files in multiple languages by translating a base JSON (e.g., en.json) using Google Translate. It's perfect for Flutter or Dart projects that need fast and easy translation support.


✨ Features #

  • 🔁 Batch translation of large localization files
  • 🌍 Supports any language Google Translate offers
  • 📦 Outputs per-language JSON files
  • 🚀 CLI-friendly — run from terminal or scripts
  • 📊 Shows progress while translating

📦 Installation #

▶️ From pub.dev #

Install globally to use the CLI from anywhere:

dart pub global activate localizely_gen

▶️ From local path (for development) #

Install globally to use the CLI from anywhere:

dart pub global activate --source path .

Usage #

dart run localizely_gen --input=assets/en.json --output=assets/langs --langs=es,fr,hi

🔧 Arguments #

Option Description Required
--input / -i Path to base JSON file (e.g., en.json) ✅ Yes
--output / -o Output directory for translated files ❌ No (defaults to ./locales)
--langs / -l Comma-separated target languages (e.g., es,fr,de) ✅ Yes
--help / -h Show help message ❌ No

📜 License #

This project is licensed under the MIT License – see the LICENSE file for details.

❤️ Contributing #

Contributions, issues, and feature requests are welcome!
Feel free to submit a pull request or open an issue.

☕ Buy Me a Coffee #

If you find this tool helpful and want to support future development, consider buying me a coffee!

Buy Me a Coffee

💸 Donate via PayPal #

Prefer PayPal? You can also support this project by donating here:
👉 paypal.me/donateLocalizeJson

0
likes
145
points
12
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

CLI tool to generate localization files from JSON using Google Translate.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

args, path, translator

More

Packages that depend on localizely_gen