Skip to content
pubscout

flutter_arb_translator

1.0.29, released 2 weeks ago by an unverified publisher

A command line tool to automatically translate Flutter ARB localization files using various APIs.

$ flutter pub add flutter_arb_translator
Source repository

What it does

A command-line tool that simplifies translating Flutter ARB files into multiple languages using external translation services like Azure, Yandex, Google Cloud, DeepL, Amazon Translate, LibreTranslate, and OpenAI. It supports annotations, plurals, and placeholders.

AI-written summary of version 1.0.29, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You manage Flutter localization using ARB files and need automated translations.
  • You want to integrate cloud translation services like DeepL or Google Cloud into your localization workflow.

Skip it when

  • You do not use ARB files for localization.
  • You require fully offline translations without third-party API keys (unless running a self-hosted LibreTranslate instance).

Strengths

  • Supports a wide variety of popular translation APIs including OpenAI, DeepL, and Google Cloud.
  • Preserves ARB annotations, plurals, and placeholders.
  • Offers flexible options like filtering by specific keys, interactive mode, and forcing overrides.

Weaknesses

  • Requires API keys and accounts for external translation services, some of which are paid.
  • Run as a command-line tool rather than a standard Dart package library inside the app.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
9

Add flutter_arb_translator to dev_dependencies and create a configuration file at dev_assets/flutter_arb_translator_config.json with credentials for your chosen translation service.

flutter pub run flutter_arb_translator:main --from en --to es --to it --service azure

Alternatives

Packages that do the same job and could replace flutter_arb_translator.

  • localization

    Simplify in-app translations using JSON files or maps with string extensions.

  • slang

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

  • auto_translator

    A CLI tool to translate ARB files using Google Cloud Translate and DeepL.

  • arb_translate

    CLI tool to automatically generate missing translations for ARB files using AI models.

Works with

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