auto_localize_plus 1.0.0 copy "auto_localize_plus: ^1.0.0" to clipboard
auto_localize_plus: ^1.0.0 copied to clipboard

Automatically generate multi-language localization JSON files (hi, ta, te, kn, ml, etc.) from a single base file. Supports fast parallel translation for Flutter and Dart projects.

auto_localize_plus #

πŸš€ Automatically generate multi-language localization JSON files for Flutter & Dart projects.

Convert a single base file (like en.json) into multiple languages such as:

  • Hindi (hi)
  • Tamil (ta)
  • Telugu (te)
  • Kannada (kn)
  • Malayalam (ml)
  • Marathi (mr)
  • Bengali (bn)
  • Gujarati (gu)
  • Punjabi (pa)
  • And more…

Fast parallel translation included ⚑


✨ Features #

βœ… Generate localization JSON automatically
βœ… Supports multiple languages
βœ… Fast parallel translation (batch processing)
βœ… CLI support (dart run auto_localize_plus)
βœ… Works with Flutter & Dart projects
βœ… Simple API
βœ… Easy integration


πŸ“¦ Installation #

dart pub add auto_localize_plus

πŸ“ Input File #

Create your base localization file (example en.json) in your project:

your_project/
  assets/
    en.json

Example:

{
  "hello": "Hello",
  "welcome": "Welcome to the app",
  "login": "Login"
}

πŸš€ Usage (Dart API) #

import 'package:auto_localize_plus/auto_localize_plus.dart';

Future<void> main(List<String> args) async {
  await AutoLocalize.generate(
    inputPath: 'assets/en.json',
    outputDir: 'assets',
    languages: ['hi', 'ta'],
  );
}

πŸ“Œ languages Parameter #

In:

languages: ['hi', 'ta']

Add the language codes that you want to generate.

Example:

languages: ['hi', 'ta', 'te', 'kn']

This will generate:

assets/
  hi.json
  ta.json
  te.json
  kn.json

πŸš€ CLI Usage #

Run directly from terminal:

dart run auto_localize_plus

This command reads your base localization file and generates translated JSON files for the selected languages.


πŸ“ Output Structure #

After running:

assets/
  en.json
  hi.json
  ta.json
  te.json

🌍 Supported Language Codes #

Below are commonly used language codes:

Language Code
English en
Hindi hi
Tamil ta
Telugu te
Kannada kn
Malayalam ml
Marathi mr
Bengali bn
Gujarati gu
Punjabi pa
Odia or
Assamese as
Urdu ur
Nepali ne
Sinhala si

You can use any valid ISO language code supported by the translation engine.

Example:

languages: ['hi', 'bn', 'mr']

🎯 Perfect For #

  • Flutter apps
  • Banking apps
  • Enterprise apps
  • Multi-language products
  • Localization automation

⚑ Performance #

Uses batch parallel translation for faster processing compared to sequential translation.


❀️ Contributing #

Contributions are welcome!

If you find a bug or want a feature, please open an issue or submit a PR.


πŸ“„ License #

MIT License


πŸ‘¨β€πŸ’» Author #

Developed with ❀️ for the Flutter & Dart community.


⭐ Support #

If you find this package useful, please give it a star on GitHub ⭐

2
likes
150
points
35
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Automatically generate multi-language localization JSON files (hi, ta, te, kn, ml, etc.) from a single base file. Supports fast parallel translation for Flutter and Dart projects.

Repository (GitHub)
View/report issues

Topics

#localization #i18n #json #flutter

License

MIT (license)

Dependencies

translator

More

Packages that depend on auto_localize_plus