LibreTranslate language detection issue

We added LibreTranslate via docker container to our new (8 mo.) Discourse instance. It works well for certain languages (es, de, nl). However, it fails miserably with Basque (eu) and other languages.

I set up a script to make JSON calls of our version of libretranslate, and confirmed them with the test model at libretranslate.com . In both cases, it failed to recognize simple Basque sentences. However, when I specified Basque as the source language, they both translated well.

Although this is a libretranslate problem (and I did install the lingua-language-detector in the container using pip install lingua-language-detector), I wonder if a Discourse solution might be employed. The idea is to use the interface language of the message sender to set the source language for the translation operation, rather using ‘auto’ detection.`

Any idea whether this is feasible or potentially actionable?

1 Like