Polyglot is an NVDA global add-on focused on fast, flexible multilingual translation. It can translate selected text, clipboard content, and the last text spoken by NVDA, and it can also intercept spoken content for live auto-translation.
The add-on is built around a dynamic engine architecture. Translation engines declare their own capabilities and configuration schema, and the settings UI is generated from that schema at runtime. That keeps the core plugin small while making it straightforward to add new services.
NVDA+Alt+Z; press H in the layer to show command layer help.The preferred installation path is the NVDA Add-on Store. You can also install manually:
.nvda-addon package from the Releases page.NVDA menu -> Preferences -> Settings -> Polyglot.NVDA+Alt+Z, then use one of the command-layer keys below. Press H in the layer to show command layer help.Press NVDA+Alt+Z to enter the command layer. A short beep confirms that the layer is active. Press H in the layer to show command layer help. Most commands execute once and exit the layer. Language and engine switching commands stay inside the layer so you can continue cycling. Engine switching cycles through enabled engines only.
| Key | Action |
|---|---|
T |
Translate the current selection. |
Shift+T |
Translate the current selection in reverse. |
B |
Translate clipboard text. |
Shift+B |
Translate clipboard text in reverse. |
L |
Translate the last text spoken by NVDA. |
Shift+L |
Translate the last text spoken by NVDA in reverse. |
S |
Next source language. |
Shift+S |
Previous source language. |
G |
Next target language. |
Shift+G |
Previous target language. |
E |
Next enabled engine. |
Shift+E |
Previous enabled engine. |
W |
Swap source and target languages. |
A |
Announce the current engine and language pair. |
C |
Copy the last translation result. |
V |
Toggle auto-translation. |
I |
Open the interactive translation dialog. |
O |
Open Polyglot settings. |
X |
Clear the translation cache. |
H |
Show command-layer help. |
The interactive dialog is designed for longer text and iterative translation work.
I.Ctrl+Enter in the source text box to translate.When NVDA’s interface language is Chinese, including Simplified and Traditional Chinese, Polyglot adds an offline English-to-Chinese dictionary to the command that reports the word at the review cursor:
numpad5 once in the desktop keyboard layout to read the word at the review cursor.Add-ons that call NVDA’s speech.spellTextInfo receive the same behavior. If a line contains only one
English word, pressing the current-line command three times also reports its definition. Lookup handles one
layer of common leading or trailing sentence punctuation, safe spelling variants, and common plurals,
tenses, participles, comparatives, and superlatives. Exact entries take priority. When a spelling can refer
to several entries, Polyglot announces up to three candidates with their first senses. If a two- or
three-character uppercase word only matches a lowercase entry, Polyglot reports the possible lowercase
meaning and warns that it may instead be an abbreviation. Words that look valid but are not included are
reported as missing. Single characters, multiword lines, and unsupported text keep NVDA’s original character
descriptions. Lookup is fully local and never sends the word to a translation service.
The Translate Selection, Translate Clipboard, and Translate Last Spoken commands also use the local dictionary for complete English words in English/auto-detect → Simplified or Traditional Chinese requests, and for English-word input in Chinese → English requests. Other content continues through the selected translation engine.
Translation commands and text review have separate local-dictionary options. Both are enabled by default; disabling either restores that command’s original behavior.
Current dictionary size:
Copy manual translation results to clipboard: Copies manual translation output after a successful request.Prefer the local English-Chinese dictionary for selected text, clipboard text, and last spoken text: Controls local
lookup for those three translation commands.Use the local English-Chinese dictionary in text review: Controls local definitions for NVDA text review.Enable smart speech filter: When translating spoken NVDA output, skips non-content speech such as roles, states, location, and formatting details where possible.Clear Cache: Clears the persistent translation cache and shows the current item count in the button label.Most engines inherit a common set of settings:
Enable this engine: controls whether the engine is available for translation requests, command-layer engine switching, and the interactive dialog. Disabled engines remain visible and configurable in settings.Source language and Target languageProxy mode: use system proxy settings or disable proxy usageRequest timeoutIf an engine reports detected source language, Polyglot also exposes:
Auto-swap if detected source matches target: useful when the source language is set to auto-detectSwap to language: the alternative target used during auto-swapSome engines expose additional controls:
Ollama 1 and Ollama 2 provide two separate saved profiles for different local or remote Ollama setups.OpenRouter exposes API URL, API key, model preset, custom model name, prompt template, and custom prompts.Ollama engines expose API URL, model name, optional API key, prompt template, and custom prompts.Google Translate (Polyglot) exposes a configurable endpoint URL and API key field.Google Translate (key-free) offers an optional mirror-server toggle.Polyglot can use Chrome’s built-in Translator API for offline translation. Translation is handled by an isolated local Chrome instance, so the text is not sent to a third-party translation service.
Select Chrome AI (Offline) in Polyglot settings, then choose the source and target languages. Chrome AI requires an explicit source language; Auto-detect is not available for this engine, so Polyglot can check the required model before starting Chrome.
On first use, if the required model is not installed, Polyglot asks how to proceed. Choose Yes to download and install the model with Polyglot’s model manager; use this if Chrome’s model download service is slow, blocked, or unreliable on your network. Choose No to let Chrome download the model. Choose Cancel to cancel the current translation. After the model is ready, translation continues automatically.
Translation runs locally. Models can be installed by Polyglot’s model manager or downloaded by Chrome. If Chrome’s model download service is slow or unavailable on your network, choose Yes in the prompt, or open the Polyglot ChromeAI model manager from NVDA’s Tools menu to install or remove offline models in advance.
Polyglot uses a separate Chrome data directory for Chrome AI, so it does not affect your regular Chrome profile. Models, cache data, and runtime data are kept to avoid repeated downloads.
The default location is:
%LOCALAPPDATA%\Polyglot\ChromeAI
If the LOCALAPPDATA environment variable is not available, Polyglot falls back to the polyglot_chrome_ai directory under the NVDA configuration directory.
When NVDA exits, Polyglot closes the Chrome instance it started.
Auto-detect is not available for this engine.The repository currently includes the following engines:
| Engine | Credentials | Notes |
|---|---|---|
Baidu Translate |
Baidu app ID and secret | Standard vendor API integration. |
Caiyun |
Caiyun token | Standard vendor API integration. |
Chrome AI (Offline) |
None | Uses Chrome’s built-in Translator API with local models; select the source language explicitly. |
DeepL |
DeepL API key | Standard vendor API integration. |
Google Translate (key-free) |
None | Supports an optional mirror endpoint toggle. |
Google Translate (Polyglot) |
Configurable API key and endpoint | Ships with default endpoint values in code; availability depends on service status. |
Lingva Translate |
None | Public Lingva endpoint, no language-detection reporting in responses. |
Microsoft Translator (key-free) |
None | Fetches a temporary token automatically. |
Niutrans |
Niutrans API key | Standard vendor API integration. |
Ollama 1 |
Ollama URL, model name, optional key | First saved Ollama profile. |
Ollama 2 |
Ollama URL, model name, optional key | Second saved Ollama profile. |
OpenRouter |
OpenRouter API key | Supports model presets and editable prompt templates. |
Tencent Translate |
Tencent secret ID and secret key | Standard vendor API integration. |
Tencent Translate (Polyglot) |
NVDACN username and password | Polyglot-backed Tencent route. |
VIVO Translate |
NVDACN username and password | Limited language set, no auto-detect source language. |
Volcengine (Polyglot) |
NVDACN username and password | Polyglot-backed Volcengine route. |
Yandex Translate |
None | Public-style endpoint, no detected-language reporting. |
Contributions are welcome across code, documentation, localization, testing, and engine integrations.
When adding a new engine:
addon/globalPlugins/polyglot/services/engines/.TranslationEngine or, for HTTP engines, extend BaseHttpEngine.getConfigSpec() if the engine needs settings.views/factory.py: choice, text, password, checkbox, and spinctrl.Copyright (C) 2025-2026 cary-rowen.
This project is licensed under the GNU General Public License version 3 or later
(GPL-3.0-or-later). See the repository’s COPYING.txt.