auto_translator
2.3.5, released 2 years ago by leephillips.dev
A CLI tool to translate ARB files using Google Cloud Translate and DeepL.
What it does
It reads an ARB template file and automatically generates translated ARB files for selected target languages using cloud translation services like Google Cloud Translate and DeepL. It preserves placeholders, conditions, and variables while supporting custom overrides and ignore rules.
AI-written summary of version 2.3.5, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to automate the translation of ARB files for your Flutter app's internationalization.
- You use Google Cloud Translate or DeepL as your translation provider.
Skip it when
- You prefer manual translations without cloud services.
- You need an in-app dynamic translation solution rather than a build-time CLI generator.
Strengths
- Supports both Google Cloud Translate and DeepL out of the box.
- Handles complex ARB strings, variables, conditions, and placeholder examples.
- Integrates smoothly with the standard intl l10n configuration.
Weaknesses
- Requires paid cloud translation service API keys (Google or DeepL).
- Command-line tool requiring local execution.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Add to dev_dependencies, set up l10n.yaml, and create a translator API key file in your project root.
arb-dir: lib/l10n
template-arb-file: app_en.arb
output-localization-file: app_localizations.dart
translator:
service: Google
targets:
- es-ES
- fr
- jaAlternatives
Packages that do the same job and could replace auto_translator.
- flutter_arb_translator
A command line tool to automatically translate Flutter ARB localization files using various APIs.
71Compare - slang
Type-safe i18n solution generating Dart translation classes from JSON, YAML, CSV, or ARB files
90Compare - arb_translate
CLI tool to automatically generate missing translations for ARB files using AI models.
46Compare - translations_cleaner
Command-line tool to find, delete, and sort unused translations in .arb files.
65Compare
Works with
Packages commonly used together with auto_translator: ones it builds on, ones built on it, and its own family.