leolabs / json-autotranslate

Translate a folder of JSON files containing translations into multiple languages.
MIT License
139 stars 43 forks source link

Deepl / Deepl Pro and arabic #122

Open jmeinke opened 3 months ago

jmeinke commented 3 months ago

Why does the tool state that there is not support for ar, while arabic is listed in the supported languages at DeepL?

AR is in both in source and target languages: https://developers.deepl.com/docs/resources/supported-languages

Thanks for your help!

leolabs commented 3 months ago

This seems to be an issue with DeepL's API. This tool fetches a list of all available languages from their /languages endpoint, but the docs state:

Please note that Arabic and Chinese (traditional) have not yet been added to the /languages endpoint because these languages do not yet support document translation; only text translation is supported for Arabic and Chinese (traditional) at this time. When document translation support is added for these languages, we will a) remove this note and b) add the languages to the /languages endpoint where appropriate.

I could manually add ar and ch to the list of supported languages in the meantime, but that would be more of a workaround.