Add LibreTranslate as a new translator Docker app - #4
Merged
Conversation
Pulled vendor image (libretranslate/libretranslate, AGPL-3.0), port 5000, Reuse lifecycle (like BentoPDF) since first run downloads translation models for every language - observed ~4.5 minutes on a plain broadband connection, so wait_tries is generous (240 tries, 6 min) and the info line calls this out. Verified end-to-end: pulled the image, waited for readiness, confirmed the language list and an actual translation (POST /translate "Hello world" en->es returned "Hola mundo"), then cleaned up the test container/image. Updates the TUI Open menus (both win11/ubuntu22), run.rs script shortcuts (open-translator/stop-translator), MCP tool description, AGENTS.md, SECURITY.md's per-app threat model, docker/README.md, and docs/mcp-functions.md to match. README: Features' app-launch bullet is now a nested sub-list (Docs, Library, Media Downloader, Doc Processor, Translator) per request, so future additions slot in the same way. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Live-tested first run: ~9.4 GB downloaded (not "a few GB" as originally guessed) over ~5 minutes. Bumped wait_tries from 240 (6 min) to 400 (10 min) so a slower connection doesn't trip the "not ready" fallback on an otherwise-healthy first run, and corrected the size/time mentions in the info message and AGENTS.md to match what was actually observed. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
libretranslate/libretranslate, AGPL-3.0, self-hosted) as a newtranslatorapp in the Docker app registry - pulled image, port 5000,Reuselifecycle (same pattern as BentoPDF) since first run downloads translation models for every language.run.rsshortcuts (open-translator/stop-translator), MCP tool description, AGENTS.md, SECURITY.md's per-app threat model table,docker/README.md, anddocs/mcp-functions.md.Features: the app-launch bullet is now a nested sub-list (Docs, Library, Media Downloader, Doc Processor, Translator) so future app additions slot in the same way going forward.Test plan
cargo build/test/clippy/fmt --checkall passvn app listincludestranslatorwait_triesset to 240/6min accordingly), confirmed/languagesand an actualPOST /translate("Hello world" en→es returned "Hola mundo"), then cleaned up the test container/imageworkflow_dispatchCI manually before merging (this repo's CI is manual-only)🤖 Generated with Claude Code