Break down language barriers with context-aware translation powered by Google Gemini.
Polyglot-LLM is an NVDA addon that provides both real-time automatic translation and on-demand selective translation using AI. Unlike traditional translators, it understands conversation context for more natural translations.
Press NVDA+Shift+T to enter the translation layer, then:
Translation Commands:
T- Translate selected textShift+T- Translate clipboard contentL- Translate last spoken textC- Copy last translation to clipboard
Mode Toggles:
R- Toggle real-time translation (auto-translate all speech)M- Toggle conversation mode (context-aware translations)
Utility Commands:
S- Announce current settings (target language, modes status)X- Clear translation cache for current applicationH- Show layer helpEscape- Exit layer
Real-Time Translation - Automatically translates all NVDA speech
- Enable/disable with
Rkey in the layer - Perfect for live chats, streaming content, or conversations
- Smart caching minimizes delays
- Works seamlessly with conversation mode
On-Demand Translation - Selective translation when you need it
- Use layer commands (
T,Shift+T,L) to translate specific text - Exit layer automatically after translation
- Perfect for emails, documents, or clipboard content
Enable with M key in the layer for context-aware translations:
- Remembers last 5-10 messages in the conversation
- AI understands pronouns, topic flow, and tone
- Example: "Which movie?" vs "Which?" - context matters
- Conversation history clears when you disable the mode
- Works in both real-time and on-demand modes
- Auto Language Detection - No need to specify source language
- Intelligent Caching - Reduces API costs and delays
- Non-conversation translations cached globally (reused across contexts)
- Conversation translations cached per-context (accurate for specific chats)
- Per-application cache files for better organization
- Customizable System Prompt - Adjust translation behavior
- Thinking Budget - Balance speed vs quality
- Max Token Limit - Configurable with clear error messages
- Unified Layer Interface - All commands accessible from one place
- Customizable Gestures - Remap any command in NVDA's Input Gestures dialog
- Download the latest
.nvda-addonfile from releases - Open the file (NVDA will install it automatically)
- Restart NVDA when prompted
- Go to
NVDA menu β Preferences β Settings β Polyglot-LLM - Enter your Google Gemini API key (get one free)
- Select your target language (e.g., Spanish, French, English)
- Adjust settings if desired (defaults work great)
- Click OK
For Live Conversations:
- Press
NVDA+Shift+Tto enter translation layer - Press
Mto enable conversation mode (for context awareness) - Press
Rto enable real-time translation - Chat normally - everything is automatically translated with context
- Press
NVDA+Shift+TβRagain to disable when done
For Reading Foreign Text:
- Select text with
Shift+Arrows - Press
NVDA+Shift+Tto enter layer - Press
Tto translate selection - Translation is spoken and copied to clipboard
Quick Status Check:
- Press
NVDA+Shift+TβSto hear current settings
Clear Cache:
- Press
NVDA+Shift+TβXto clear cached translations for current app - Real-time communication
You already have on-demand gestures listed above. The layer includes:
H- Help (list all gestures)V- View conversation history
Perfect for:
- Reading emails or documents
- Non-urgent translation tasks
- Reviewing clipboard content
NVDA β Preferences β Settings β Polyglot-LLM
- API Key - Your Google Gemini API key (required)
- Target Language - Language to translate into (required)
- System Prompt - Customize AI behavior (advanced)
- Thinking Budget - Trade speed for quality (Minimal/Low/Medium/High)
- Max Tokens - Maximum translation length (default: 2048)
- Conversation Mode - Enable context-aware translation
- History Length - Number of messages to remember (5-20)
Over 40 languages including:
- English, Spanish, French, German, Italian, Portuguese
- Chinese (Simplified/Traditional), Japanese, Korean
- Arabic, Hebrew, Hindi, Russian, Turkish
- And many more...
Note: Source language is automatically detected - no configuration needed.
- International Gaming - Communicate with players worldwide
- Language Learning - Understand native content while learning
- Global Chat Rooms - Participate in any language community
- Foreign Websites - Read content in your language
- Cross-Language Support - Help others in their native language
- Perfect for: Messages, paragraphs, chat, selected text
- Not designed for: Long documents, articles, books
- Max token limit prevents translating very long content
- Use document translation tools for large texts
Google Gemini Flash is extremely cheap:
- Free tier: 15 requests/minute, 1500 requests/day
- Paid tier: $0.075 per 1M input tokens
- Smart caching reduces redundant API calls significantly
- Translations are sent to Google Gemini API
- No data is stored by the addon except cached translations (local)
- Review Google's privacy policy if concerned
- Press
NVDA+Control+F1β View Log - Look for error details from Polyglot-LLM
- Common fixes:
- Check API key is correct
- Verify internet connection
- Check if you hit rate limits (wait a minute)
- Ensure target language is set
- Lower thinking budget to "Minimal" or "Low"
- Ensure caching is working (try repeating text)
- Check network speed
- Disable conversation mode if not needed
- Ensure NVDA version is compatible (2024.1+)
- Check NVDA log for errors
- Try reinstalling the addon
- Check for conflicts with other translation addons
- User Guide: This README
- Developer Guide: See DEVELOPMENT.md
- Copilot Instructions: See .github/copilot-instructions.md
Contributions welcome! See DEVELOPMENT.md for technical details.
Key points:
- Follow NVDA coding conventions (tabs, camelCase)
- Test both SDK and REST API modes
- Commit frequently with descriptive messages
- Don't push - maintainer handles releases
GPL v2 - See LICENSE file
Inspired by and built upon:
- AI Content Describer - API integration patterns
- Instant Translate - Keyboard layer design
- Translate - Real-time speech interception
Powered by:
- Google Gemini 3 Flash - Fast, cost-effective AI translation
Traditional translation services translate word-by-word without understanding context. AI models understand:
- Conversation flow - "That's cool!" β Friendly tone preserved
- Pronouns - "Is it ready?" β Knows what "it" refers to
- Slang and idioms - Natural expressions, not literal translations
- Cultural context - Adapts to language norms
This creates more natural, human-like translations that make cross-language communication feel seamless.
Made with β€οΈ for the NVDA community