We added the docker image of libretranslate to our self-hosted Discourse instance 6 months ago and it worked out of the box. We tested a handful of languages and have been using it successfully in both directions ever since.
Recently a new user in China joined and changed their interface to Chinese. When they tried to translate English to Chinese, it failed with this message:
出错了:翻译器无法将此帖子的内容 (en) 翻译成您的语言 (zh_CN)。
which translates in English to:
Error: Translators cannot translate the contents of this article (en) into your language (zh CN)。
Note: translations in the other direction (CH-EN) work fine.
We have been diligent in applying updates including libretranslate, but cannot understand where this is failing.
I wonder if the zh_CN designation in this error points to a mismatch between the language model in argos_translation (zh_Hans and zh_Hant) and Discourse’s understanding of this particular locale (zh CN). Beyond that, I don’t have an easy way to troubleshoot this problem.
Any insights or fixes you can offer would be most appreciated.