Is there any way that automate the localizations translations of my app's .arb file

231 Views Asked by At

I have an app_en.arb file which contains my localization translation for the English language.

I want to generate other languages's localization files based on this one, and I want to know if there are some software/services that might accelerate this process such as auto-translation, listing those translations for editing them...

Thanks.

2

There are 2 best solutions below

0
Oded Ben Dov On

Found this package, haven't tried it yet: https://pub.dev/packages/flutter_arb_translator

A command line tool which simplifies translation of Flutter ARB files. You can simply choose a service from supported list: Azure Cognitive Services, Yandex, Google Cloud, DeepL and flexibly adjust translation options.

0
Oded Ben Dov On

Ended up using ChatGPT with GPT-4.

Tried uploading the file first, didn't work well, so ended up just copying everything into the prompt and it was great!

My initial prompt to start it all was Do you know what an app_en.arb file is?

It did, and I followed by requesting a translation to the desired language and copy-pasting everything into the prompt