Configuring Self-Hosted LibreTranslate in Weblate via Docker #16262
Unanswered
SethFalco
asked this question in
Show and tell
Replies: 1 comment
-
|
Great, let's add this to the documentation. I wanted to test Copilot to create the pull request based on this content. But as usual, I've spent more time fixing the output than I would have spent writing this myself… Anyway, the pull request is at #16282, review is welcome. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I needed this for my instance, and was pleasantly surprised at how quick / simple it quick be to extend. Originally I thought it'd be more involved. Just sharing here for future me, or anyone that may find themselves over complicating things.
To add self-hosted LibreTranslate to Weblate, one can literally just include an extra service in
docker-compose.override.yml. The default settings are cool too, since it won't be accessible to the public. 👍docker-compose.override.ymlThis runs a LibreTranslate instance along with Weblate, it's only the API, and it can only be accessed via its service name within the docker network.
Then do
docker compose down && docker compose up -d.Finally, go to
/manage/machinery/libretranslateand point to your LibreTranslate instance. The API URL ishttp://libretranslate:5000, leave API key blank.And that's it, LibreTranslate is configured. 🎉
Beta Was this translation helpful? Give feedback.
All reactions