<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[LibreTranslate with Cloudron Mastodon Server]]></title><description><![CDATA[<p dir="auto">OK I have LT setup and running, API key configured.</p>
<p dir="auto">How do I now edit the Cloudron Mastodon config to use it?</p>
<p dir="auto">Thanks,<br />
Shane.</p>
]]></description><link>https://forum.cloudron.io/topic/8527/libretranslate-with-cloudron-mastodon-server</link><generator>RSS for Node</generator><lastBuildDate>Mon, 18 May 2026 21:32:31 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/8527.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Jan 2023 05:55:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to LibreTranslate with Cloudron Mastodon Server on Wed, 25 Jan 2023 14:51:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a><br />
I think Mastodon's translate button only appears if the poster has set a language for his / hear toot that's different from your language settings.<br />
It could be that the LT API relies on the source and destination language settings that are submitted by Mastodon. That could be an explanation for the errors I received, b/c not everyone sets the language correct. Maybe the DeepL API is more flexible here.</p>
]]></description><link>https://forum.cloudron.io/post/60849</link><guid isPermaLink="true">https://forum.cloudron.io/post/60849</guid><dc:creator><![CDATA[nichu42]]></dc:creator><pubDate>Wed, 25 Jan 2023 14:51:33 GMT</pubDate></item><item><title><![CDATA[Reply to LibreTranslate with Cloudron Mastodon Server on Wed, 25 Jan 2023 13:25:10 GMT]]></title><description><![CDATA[<p dir="auto">I have enabled this also with our cloudron mastodon instance now and it works mostly. For some reason mastodon does not always show the translate button and sometimes it also shows it for english posts, which then results in a 503 response error, since libretranslate got the request to translate from en -&gt; en which is wrong.</p>
<p dir="auto">Just sharing this here, to set expectations.</p>
]]></description><link>https://forum.cloudron.io/post/60845</link><guid isPermaLink="true">https://forum.cloudron.io/post/60845</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Wed, 25 Jan 2023 13:25:10 GMT</pubDate></item><item><title><![CDATA[Reply to LibreTranslate with Cloudron Mastodon Server on Wed, 25 Jan 2023 09:59:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shanelord01" aria-label="Profile: shanelord01">@<bdi>shanelord01</bdi></a> said in <a href="/post/60805">LibreTranslate with Cloudron Mastodon Server</a>:</p>
<blockquote>
<p dir="auto">After doing this I've noted the app is stuck reporting as "Starting" in the Cloudron "My Apps" even though it is running fine</p>
</blockquote>
<p dir="auto">This seems like maybe the box cron job got stuck for some reason. Can you try if <code>systemctl restart box</code> fixes the state?</p>
]]></description><link>https://forum.cloudron.io/post/60817</link><guid isPermaLink="true">https://forum.cloudron.io/post/60817</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 25 Jan 2023 09:59:10 GMT</pubDate></item><item><title><![CDATA[Reply to LibreTranslate with Cloudron Mastodon Server on Wed, 25 Jan 2023 09:58:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shanelord01" aria-label="Profile: shanelord01">@<bdi>shanelord01</bdi></a> thanks for the great write up! I will try to enable this on our instance as well.</p>
]]></description><link>https://forum.cloudron.io/post/60816</link><guid isPermaLink="true">https://forum.cloudron.io/post/60816</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 25 Jan 2023 09:58:31 GMT</pubDate></item><item><title><![CDATA[Reply to LibreTranslate with Cloudron Mastodon Server on Wed, 25 Jan 2023 08:45:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shanelord01" aria-label="Profile: shanelord01">@<bdi>shanelord01</bdi></a> My VPS is at ~ 30% most of the time, but I found the LT API to be awfully slow. Mastodon also gave too many 503 errors (due to timeouts? I don't know). And the translation quality is just too poor compared to DeepL. However, I'm happy to have LT available via Cloudron and will certainly give it another try at a later time. I still like the idea of in-house translation without submitting data to a third party.</p>
]]></description><link>https://forum.cloudron.io/post/60809</link><guid isPermaLink="true">https://forum.cloudron.io/post/60809</guid><dc:creator><![CDATA[nichu42]]></dc:creator><pubDate>Wed, 25 Jan 2023 08:45:01 GMT</pubDate></item><item><title><![CDATA[Reply to LibreTranslate with Cloudron Mastodon Server on Wed, 25 Jan 2023 07:03:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nichu42" aria-label="Profile: nichu42">@<bdi>nichu42</bdi></a> Compared to what I had (nothing) it's quite good. Speed hasn't been an issue so far - I guess because I over-spec'd the machine it's running on so it has extra CPU available.</p>
]]></description><link>https://forum.cloudron.io/post/60808</link><guid isPermaLink="true">https://forum.cloudron.io/post/60808</guid><dc:creator><![CDATA[shanelord01]]></dc:creator><pubDate>Wed, 25 Jan 2023 07:03:44 GMT</pubDate></item><item><title><![CDATA[Reply to LibreTranslate with Cloudron Mastodon Server on Wed, 25 Jan 2023 06:59:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shanelord01" aria-label="Profile: shanelord01">@<bdi>shanelord01</bdi></a><br />
What do you think about performance and quality? I was quite disappointed and returned to DeepL for now.</p>
]]></description><link>https://forum.cloudron.io/post/60807</link><guid isPermaLink="true">https://forum.cloudron.io/post/60807</guid><dc:creator><![CDATA[nichu42]]></dc:creator><pubDate>Wed, 25 Jan 2023 06:59:13 GMT</pubDate></item><item><title><![CDATA[Reply to LibreTranslate with Cloudron Mastodon Server on Sun, 29 Jan 2023 11:42:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shanelord01" aria-label="Profile: shanelord01">@<bdi>shanelord01</bdi></a> OK - worked it out.</p>
<ol>
<li>Open the web UI for LibreTranslate after setting it up.</li>
<li>In the "Request" box, there is a line with "const res = await fetch("<a href="https://translate.your.domain/translate" target="_blank" rel="noopener noreferrer nofollow ugc">https://translate.your.domain/translate</a>",  "</li>
<li>Copy the main domain URL (ie <a href="https://translate.your.domain" target="_blank" rel="noopener noreferrer nofollow ugc">https://translate.your.domain</a>" )without the /translate and without quotation marks.</li>
<li>Open your Cloudron Mastodon app, and open its file manager and edit "env.production"</li>
<li>At the bottom, add the "#translate section" below here:</li>
</ol>
<pre><code># Optionally change default language
# DEFAULT_LOCALE=en

# translate
LIBRE_TRANSLATE_ENDPOINT=https://translate.your.domain
LIBRE_TRANSLATE_API_KEY=YOUR_API_KEY
</code></pre>
<p dir="auto">Save this. Restart the Mastodon app.</p>
<p dir="auto"><strong>API Key</strong><br />
If you don't have your API key, open the LibreTranslate Cloudron App Terminal, and issue:</p>
<pre><code>su - cloudron -c 'ltmanage keys --api-keys-db-path /app/data/api_keys.db add 120'
</code></pre>
<p dir="auto">You'll get a key like "f67d5afe-aa14-4d37-90f7-f7d9636b721e" in response - use the one you got in reponse.</p>
<p dir="auto"><strong>Optional</strong>; set your default language:</p>
<pre><code># Optionally change default language
DEFAULT_LOCALE=en
</code></pre>
<p dir="auto"><strong>Update</strong>:<br />
After completing setup and ensuring everything works, if you want to stop people from using the Web UI to translate, you can disable it by editing the LibreTranslate "<a href="http://env.sh" target="_blank" rel="noopener noreferrer nofollow ugc">env.sh</a>" file via its Cloudron File Manager, and adding this (then save <a href="http://env.sh" target="_blank" rel="noopener noreferrer nofollow ugc">env.sh</a> and restart LT):</p>
<pre><code>export LT_DISABLE_WEB_UI=true
</code></pre>
<p dir="auto"><em>Note: After doing this I've noted the app is stuck reporting as "Starting" in the Cloudron "My Apps" even though it is running fine. Not sure if this is a health check failing in the Cloudron app?</em> <a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> Any way to do this without causing this issue?</p>
]]></description><link>https://forum.cloudron.io/post/60805</link><guid isPermaLink="true">https://forum.cloudron.io/post/60805</guid><dc:creator><![CDATA[shanelord01]]></dc:creator><pubDate>Sun, 29 Jan 2023 11:42:41 GMT</pubDate></item></channel></rss>