leancodepl / arb_translate

A command-line tool for automatically adding missing message translations to ARB files using Google Gemini LLM by LeanCode
https://leancode.co
Apache License 2.0
55 stars 5 forks source link

Exclude locales #8

Closed dumazy closed 7 months ago

dumazy commented 8 months ago

Hi,

Is it possible to exclude certain locales? Just as mentioned in this issue, not all languages are supported by the underlying model. Specifically, I'm having issues with Albanian sq and the Vertex model, but would be happy to just be able to exclude this from arb_translate for now, without having to delete the .arb file from the directory.

RobertOdrowaz commented 7 months ago

I've added option to exclude locales in the new version (0.1.3). You can use --exclude-locales sq,es command line param or arb-translate-exclude-locales: ["sq", "es"] option in l10n.yaml