Installation & User Guide
TransFlow is an open-source browser translation extension built with Plasmo + React 19 + TypeScript (Manifest V3), designed for selection translation, bilingual full-page reading, input field assistance, and custom LLM translation.
1. Installation
Option A: Chrome Web Store (Recommended)
- Search for TransFlow on the Chrome Web Store and click Add to Chrome.
- Compatible with Google Chrome and Chromium-based browsers such as Edge, Brave, and Arc.
Option B: Load from GitHub Releases or Source
- Download a release bundle from GitHub Releases, or clone the source and run
pnpm install && pnpm buildto generatebuild/chrome-mv3-prod. - Open
chrome://extensionsand enable Developer mode. - Click Load unpacked and select the extracted folder or
build/chrome-mv3-prod.
2. Core Workflows
Selection Translation
Highlight any text on a webpage to show the floating TransFlow button, then click it to view the translation card (with TTS playback, copy, favorite toggle, and language switching).
Under Options → Translation settings → Text translation, you can customize trigger behavior:
- Auto translate selected text: Open the translation card immediately after selection.
- Translate with hotkey: Trigger selection translation only when pressing your configured shortcut.
- Quick translate: Show translation quickly on hover or selection.
Full-Page Translation & Site Rules
- Open the toolbar popup and click Translate current page; click Show original page anytime to restore the original content.
- Under Options → Translation settings → Page translation, choose between Translated only and Compare with original.
- Configure Whitelisted sites for automatic page translation and Custom dictionary entries to enforce site-specific terminology.
Input Field Translation
Draft directly inside <input>, <textarea>, or contenteditable fields:
- Trigger via Hotkey (default) or Automatic delay after typing pauses.
- Choose between Auto replace or an interactive preview card before replacing.
- Exclude specific fields using CSS selectors (such as
.no-translate).
Built-in Engines & Custom LLM Adapters
Manage providers under Options → Engine settings:
- Built-in Web Engines:
Google,Bing,DeepL, andYandex(with optional API keys for Bing, DeepL, and Yandex). - 9 Built-in LLM Templates:
OpenAI GPT,Anthropic Claude,Google Gemini,DeepSeek,Moonshot AI,Qwen,Mistral,xAI Grok, andOllama.- Prompts support
{text},{sourceLang}, and{targetLang}placeholders. - Use the built-in Test translation action to verify endpoint and credentials right inside the form.
- Prompts support
- Custom HTTP API: Sends a
POSTJSON request with:jsonReturn a JSON object containing either{ "text": "Hello, world!", "sourceLang": "auto", "targetLang": "zh-CN", "from": "auto", "to": "zh-CN" }translationortranslatedText.
Speech Playback (TTS)
Choose between three TTS backends in Options → Engine settings / Speech settings:
- Google TTS: Ready out of the box with speed and volume controls.
- Edge TTS: Includes 21 neural voices across Chinese, English, Japanese, Korean, French, German, Spanish, Russian, and Portuguese with speed, pitch, and volume controls.
- Browser TTS: Uses the browser's built-in Web Speech API voices.
Cache, Favorites & Shortcuts
- Local Cache: Stores translations locally in IndexedDB with hit-rate metrics, configurable TTL, and entry limits.
- Favorites: Save phrases from translation results, search your saved list, and import/export via JSON.
- Keyboard Shortcuts: Disabled by default to prevent accidental hotkey conflicts with websites or browsers; enable and customize them anytime under Options → Shortcut settings.
3. Troubleshooting
- Selection translation does not appear on an already-open tab after installing or reloading? Press F5 to reload existing tabs so the browser injects the updated content script.
- Why does translation not work on
chrome://,chrome-extension://, or Web Store pages? Chromium browsers restrict content script injection on internal browser pages and the Chrome Web Store for security reasons. - How do I back up or migrate settings? Go to Options → General settings → Data management to export
transflow-config.json, import a backup, or reset all settings.