translate_arb_cli 1.1.1 copy "translate_arb_cli: ^1.1.1" to clipboard
translate_arb_cli: ^1.1.1 copied to clipboard

Translate arb to other language by using LLMs.

Translate arb CLI #

Translate .arb file to other languages by the power of LLMs.

Supported API:

  • OpenAI
  • Google Gemini
  • Ollama

Usage #

translate_arb_cli.dart ollama -f app_en.arb -t fr

Batch translate your arb files to other languages:

export GOOGLEAI_API_KEY=<YOUR_API_KEY>
for lang in {fr,es,de} do
  translate_arb_cli gemini -f app_en.arb -t ${lang} > app_${lang}.arb
done