argos_translator_offline 0.0.1 copy "argos_translator_offline: ^0.0.1" to clipboard
argos_translator_offline: ^0.0.1 copied to clipboard

A Flutter package to auto translate localization keys from .arb files. and .json file offline and free

Argos Translate Dart #

ko-fi

PRs Welcome Pub Version

A Flutter package for offline and free automatic translation of localization keys from .arb and .json files.

Features #

  • Offline translation support
  • Free to use
  • Supports .arb and .json file formats
  • Automatic translation of localization keys
  • Cross-platform compatibility

Prerequisites #

  1. Install Python (3.7 or higher)
  2. Install argos-translate using pip:
pip install argostranslate

For more information about argos-translate, visit:

Installation #

Add this package to your pubspec.yaml under dev_dependencies:

dev_dependencies:
  argos_translator_offline: ^0.0.1

Then run:

flutter pub get

Usage #

Run the translation command with the following format:

dart run argos_translator_offline path=<path_to_your_file> from=<source_language> to=<target_language>

Example:

dart run argos_translator_offline path=test/lang/lang.arb from=en to=ar

This will translate your localization file from English to Arabic.

Requirements #

  • Dart SDK >= 3.0.0
  • Flutter SDK (latest version recommended)
  • Python 3.7 or higher
  • argos-translate Python package

Project Structure #

├── bin/          # Command-line application entrypoint
├── lib/          # Library code
├── test/         # Unit tests
├── dlls/         # Dynamic link libraries
└── venv/         # Python virtual environment

Contributing #

Contributions are welcome! Please feel free to submit a Pull Request.

License #

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

Author #

Support #

If you encounter any issues or have questions, please file an issue on the GitHub repository.

Dependencies #

This package uses the following dependencies:

  • ffi - For foreign function interface
  • path - For path manipulation
3
likes
0
points
318
downloads

Publisher

verified publisherabdelrhmantolba.online

Weekly Downloads

A Flutter package to auto translate localization keys from .arb files. and .json file offline and free

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ffi, path

More

Packages that depend on argos_translator_offline