arb_translate
1.1.0, released 2 years ago by leancode.co
CLI tool to automatically generate missing translations for ARB files using AI models.
What it does
arb_translate is a command-line tool that automatically generates missing translations in ARB files. It integrates with Google Gemini, OpenAI ChatGPT, Vertex AI, or custom OpenAI-compatible models to populate translation files based on a template ARB.
AI-written summary of version 1.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You use Flutter's localizations and ARB files and want to automate adding missing translations.
- You want to leverage AI models like Gemini or ChatGPT for application localization.
Skip it when
- You do not use ARB files for localization.
- You prefer manual translation writing for quality control.
Strengths
- Supports multiple AI providers including Gemini, ChatGPT, Vertex AI, and custom models.
- Seamlessly integrates with existing l10n.yaml configurations used by Flutter apps.
Weaknesses
- Relies on external AI services which require API keys and may incur costs.
- AI-generated translations may occasionally require manual review and correction.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 9
Activate via pub global, obtain an API key from Google or OpenAI, and configure it via environment variables or l10n.yaml.
dart pub global activate arb_translate
arb_translateAlternatives
Packages that do the same job and could replace arb_translate.
- 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 - intl_messages
Message internationalization and localization framework with OpenAI translation tools integration.
69Compare - l10n_languages
Provides CLDR-like translations for language names across 157 locales.
80Compare
Works with
Packages commonly used together with arb_translate: ones it builds on, ones built on it, and its own family.
- yamlarb_translate depends on itA Dart library for parsing YAML documents into Dart data structures.
- argsarb_translate depends on itLibrary for parsing raw command-line arguments into options and values using GNU and POSIX styles.
- intlarb_translate depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- filearb_translate depends on itPluggable, mockable file system abstraction for Dart with in-memory support.
- dart_openaiarb_translate depends on itUnofficial Dart and Flutter SDK for the OpenAI API and compatible providers.