Has anyone successfully deployed Libretranslate and the Multilingual plugin?

AI-generated summary

The user sunjam is seeking help with deploying the Multilingual plugin alongside LibreTranslate and the Discourse Translator plugin. They confirm that LibreTranslate and the Translator are working, but the Multilingual plugin’s topic filtering feature is not functioning as expected, hiding posts instead of displaying them. They are encountering a connect_write timeout reached error and a DistributedMutex warning, suggesting a connection issue. Arkshine suggests checking if the LibreTranslate endpoint works outside of Discourse and suspects a connection or Docker issue. sunjam clarifies the problem may stem from their arm64 server architecture, referencing a known issue with LibreTranslate. Arkshine confirms the Multilingual plugin worked in their own testing.

Continuing the discussion from LibreTranslate Plugin – Free and Open Source Translation API and Multilingual Plugin 🌐 - #122 by aerozol

I’m attempting to use the Multilingual app with Libretranslate and Discourse Translator.

  • Libretranslate working
  • Translator enabled
  • Discourse Translator working via globe icon to translate posts
  • allow user locale
  • multilingual enabled
  • multilingual content languages enabled
  • multilingual translator content tag sync
  • multilingual tag translations enforce format

What I see is multilingual content languages topic filtering enabled hides posts instead of them being visible.

Not sure what else I need to do to get Multilingual plugin to work. I am seeing these errors:

Is your endpoint working properly? Did you test it outside Discourse? For example, if /languages returns something?

I’m using a hosted endpoint, which works just fine. Hoping to sort out my own arm64 instance in the linked thread so I can use it instead.

But, still not able to use multilingual plugin with the hosted instance that has been working fine for libretranslate.

I just installed it on my computer, and it works fine on my dev instance: :thinking:

image

Your error suggests that the URL cannot be reached or something is blocking it, resulting in a timeout.
That’s the reason I was asking if you can use your LibTranslate API outside of Discourse. I’m not too sure what your issue is. This sounds like a connection issue with Docker, but I’m not an expert.

My issues appear to be because my server is arm64. See Translations on M1 crash docker container · Issue #524 · LibreTranslate/LibreTranslate · GitHub

@Arkshine Have you tried deploying the Multilingual app as well?

Not recently, but it worked fine when I tested it in October.