Local GPU Translation inside VS Code.
55 languages. Zero cloud dependency. All translation happens on your machine via TranslateGemma 12B + Ollama.
Install
ext install mcp-tool-shop.polyglot-vscode
Shortcut
Select text → Ctrl+Alt+T → Pick language → Done
README
Polyglot: Translate README → 7 languages in one click
Features
Everything you need for in-editor translation.
Local & Private
Runs TranslateGemma 12B on your GPU via Ollama. No API keys, no cloud, no data leaves your machine.
55 Languages
From Arabic to Welsh — covers all major languages plus dozens more. Full list in the README.
README-Aware
Smart segmentation preserves code blocks, HTML badges, URLs, and table structure while translating content.
Commands
Getting Started
1. Install Ollama
# Download from https://ollama.com
# Or on macOS:
brew install ollama
# Start it:
ollama serve 2. Use Polyglot
# The model downloads automatically on first use
# Select text in any file, then:
# Ctrl+Alt+T (Cmd+Alt+T on Mac)
# Right-click → Translate Selection
# Globe icon in editor title bar
# Sidebar panel → Translate Selection button Access Points
Translate from anywhere in VS Code.
Sidebar Panel
Globe icon in the activity bar with styled action buttons, live Ollama status, and keyboard shortcut tips.
Editor Title Bar
Globe icon appears in the editor title bar when text is selected. Translate File and README in the overflow menu.
Context Menu & Shortcuts
Right-click selected text for "Translate Selection". Ctrl+Alt+T for instant translation. Command Palette for everything.
Settings
Roadmap
What's next for Polyglot.
Auto-detect Language
Automatically detect the source language instead of defaulting to English.
Translation History
Keep a log of recent translations with undo/redo support.
Custom Glossaries
Define project-specific term translations for consistent technical writing.