Thunderbird addon to translate emails using Ollama, Google Translate or LibreTranslate
翻譯準備中
外掛JavaScript · HTMLGitHub @zoott28354自行安裝營運者未確認
試用過了嗎? 點一下就好,不需要登入。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
安裝型專案無需部署網域也可驗證。個人儲存庫可透過 GitHub 登入驗證,組織儲存庫可使用上方的儲存庫驗證檔案。
正在載入完整 README。 以下為已儲存的摘錄。
A Thunderbird addon that replaces the email body with its translation (in-place) into multiple languages using Ollama local, Google Translate, or LibreTranslate (Euro-friendly).檢視完整 README ↗(Local Ollama · Google Translate · LibreTranslate)
A Thunderbird addon that replaces the email body with its translation (in-place) into multiple languages using Ollama local, Google Translate, or LibreTranslate (Euro-friendly).
Ollama installed on your PC
An Ollama model downloaded
ollama pull translategemma (3GB, optimized)llama3.2, mistralThunderbird 128 or later (ESR and non-ESR)
⚠️ Important note: Before using Ollama, you'll need to configure OLLAMA_ORIGINS (see "Initial Configuration" section below).
thunderbird-translator.xpi file.xpi filemanifest.json file from the folderWhy is it needed? For security reasons, Ollama blocks requests from browser extensions. You must explicitly authorize Thunderbird.
Recommended value (more secure):
OLLAMA_ORIGINS=moz-extension://*
Allows only Firefox/Thunderbird extensions to access Ollama. Blocks all external websites.
How to configure:
Windows (CMD):
setx OLLAMA_ORIGINS "moz-extension://*"
Then close and reopen the terminal and start Ollama:
ollama serve
Linux (permanent):
echo 'export OLLAMA_ORIGINS="moz-extension://*"' >> ~/.bashrc
source ~/.bashrc
ollama serve
macOS (permanent):
echo 'export OLLAMA_ORIGINS="moz-extension://*"' >> ~/.zshrc
source ~/.zshrc
ollama serve
Alternative option (if you also need local apps):
OLLAMA_ORIGINS=moz-extension://*,http://localhost:11434
http://localhost:11434 (default)translategemma (recommended) or another installed modelExample: If you select "Translate with Google Translate > Español", all subsequent translations with Google Translate will be in Spanish (until you choose another language).
Want total privacy? Use the Ollama-only version: Thunderbird Ollama Translator — zero external connections, everything stays on your machine.
messagesRead - Reads email content (for translation)messagesModify - Modifies displayed text (to show translation)menus - Adds context menustorage - Saves settingstabs - Injects script into emailhttps://translate.google.com/* - Google Translate APIhttps://translate.fedilab.app/* - LibreTranslate instancehttp://localhost/* - For local OllamaNo access to:
LibreTranslate uses free public instances. The addon automatically tries 3 instances in sequence — if one fails, it moves to the next. Random errors (timeouts, 429 rate-limit, 503 server down) are normal and expected with free public instances. Simply retry after a few seconds.
CAUSE: Ollama blocks requests from browser extensions for security reasons.
COMPLETE SOLUTION:
Stop Ollama if it's running (Ctrl+C in the terminal where ollama serve is running)
Configure the environment variable (recommended value for security):
Windows (CMD):
setx OLLAMA_ORIGINS "moz-extension://*"
Linux:
echo 'export OLLAMA_ORIGINS="moz-extension://*"' >> ~/.bashrc
source ~/.bashrc
macOS:
echo 'export OLLAMA_ORIGINS="moz-extension://*"' >> ~/.zshrc
source ~/.zshrc
Close and reopen the terminal, then start Ollama:
ollama serve
Verify the configuration:
Note: moz-extension://* allows only Firefox/Thunderbird extensions to access Ollama, blocking external websites (more secure).
messageDisplayScripts registration for broad Thunderbird compatibility (128 ESR to 147+)MIT License - Free to use, modify and distribute.
If you have problems:
[Translator] in the consoleHappy translating! 🎉