Skip to content
pubscout

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.

$ flutter pub add arb_translate
Source repository

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_translate

Alternatives

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.

  • slang

    Type-safe i18n solution generating Dart translation classes from JSON, YAML, CSV, or ARB files

  • intl_messages

    Message internationalization and localization framework with OpenAI translation tools integration.

  • l10n_languages

    Provides CLDR-like translations for language names across 157 locales.

Works with

Packages commonly used together with arb_translate: ones it builds on, ones built on it, and its own family.