A Thunderbird addon that translates emails using local Ollama - Complete privacy, no data sent online EVER.
- ๐ 100% Local - No data sent online, EVER
- ๐ 10 Languages - Italian, English, Spanish, French, German, Portuguese, Russian, Japanese, Chinese, Korean
- ๐ฑ๏ธ Context Menu - Right-click to translate to any language
- โก Fast - Uses translategemma model (3GB, optimized for translations)
- ๐ Absolute Privacy - Everything processed locally, zero tracking
- ๐ Multilingual interface - The addon is available in 7 languages: ๐ฎ๐น Italian, ๐ฌ๐ง English, ๐ฉ๐ช German, ๐ซ๐ท French, ๐ช๐ธ Spanish, ๐ต๐น Portuguese, ๐ท๐บ Russian (automatically adapts to Thunderbird's language)
-
Ollama installed on your PC
- Download from: https://ollama.ai
-
An Ollama model downloaded
- Recommended:
ollama pull translategemma(3GB, optimized) - Alternatives:
llama3.2,mistral
- Recommended:
-
Thunderbird 128 or later (ESR and non-ESR)
OLLAMA_ORIGINS (see "Initial Configuration" section below).
- Download the
thunderbird-ollama-translator.xpifile - Open Thunderbird
- Go to Menu > Tools > Add-ons
- Click the gear icon โ๏ธ in the top right
- Select "Install Add-on from file..."
- Select the
.xpifile - Confirm installation
- Extract files to a folder
- Open Thunderbird
- Press Ctrl+Shift+A (or from Menu > Tools > Add-ons)
- Click the gear icon โ๏ธ
- Select "Debug Add-ons"
- Click "Load Temporary Add-on..."
- Select the
manifest.jsonfile from the folder
- Menu > Tools > Add-ons > "Ollama Translator" > Preferences
Why 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 serveLinux (permanent):
echo 'export OLLAMA_ORIGINS="moz-extension://*"' >> ~/.bashrc
source ~/.bashrc
ollama servemacOS (permanent):
echo 'export OLLAMA_ORIGINS="moz-extension://*"' >> ~/.zshrc
source ~/.zshrc
ollama serveAlternative option (if you also need local apps):
OLLAMA_ORIGINS=moz-extension://*,http://localhost:11434
- Target language: Italian, English, Spanish, French, German, Portuguese, Russian, Japanese, Chinese, Korean
- Ollama URL:
http://localhost:11434(default) - Test connection: Click to verify that Ollama is reachable
- Model: Select
translategemma(recommended) or another installed model
- Click "Save"
- Open an email you want to translate
- Right-click on the email body
- Select "Translate with Ollama โถ" and choose the language
- The selected language will appear in bold
- This choice becomes the default
- Wait for the message "Translation completed"
- After translation, right-click on the text
- Select "Show Original" to restore the original text
- No data sent online EVER - Everything is processed locally by Ollama
- Local connection - Communicates only with
localhost:11434 - No tracking - No statistics, tracking, or remote logs
- No API key - No API key or registration required
- Open Source - Fully inspectable code
The addon requires only these Thunderbird permissions:
messagesRead- Reads email contentmessagesModify- Replaces text with translationmenus- Adds context menustorage- Saves settingstabs- Injects script into emailhttp://localhost/*- To communicate with local Ollama
No access to external services
No access to:
- โ Address book, calendar, chat
- โ Account credentials
- โ Thunderbird database
- โ File system (except localhost for Ollama)
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 serveis 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:
- Open Thunderbird
- Go to addon settings
- Click "Test connection"
- Should show "Connection successful: X models available"
Note: moz-extension://* allows only Firefox/Thunderbird extensions to access Ollama, blocking external websites (more secure).
- Deterministic tab/preview routing โ translating from a separate email tab no longer interferes with the preview pane (and vice versa)
- Context menu now appears only in the email body (not in folder pane or message list)
- Programmatic
messageDisplayScriptsregistration for broad Thunderbird compatibility (128 ESR to 147+)
- Initial release with Ollama-only local translation
MIT License - Free to use, modify and distribute.
If you have problems:
- Open the console (Ctrl+Shift+I in a Thunderbird tab)
- Right-click on the email > Translate to Italian
- Look for blue messages
[Translator]in the console - Copy error messages and share them
Happy translating! ๐