shanghaiyangming

LightTranslate is a Windows text-selection translator and English dictionary tool that shows the result next to the mouse pointer via a global hotkey, using your own API key and streaming output.

v1.0.0
Published at
Oct 3, 2026
14
Stars
100
Download
Synced at
4d ago

Latest release

v1.0.0Oct 3, 2026, 07:43 AM
Downloads slow? Switch the source anytime above

README

Project Overview

LightTranslate turns text selected in any window into a translation popup beside the mouse pointer, so you no longer shuttle text through a chat window. It lives in the system tray, wakes on a global hotkey, and sends the source text to the model endpoint you configure, returning a Chinese translation or a dictionary-style entry for an English word. The whole program is a single C# / Windows Forms file that depends only on Windows and .NET system libraries, with no NuGet packages. The installer installs per user and needs no administrator rights.

Item Value
Platform Windows 10 / 11, 64-bit
Language C# / Windows Forms
Translation service DeepSeek by default, any compatible endpoint
License MIT
Size about 2.1 MB installer, about 109 KB portable

Press Ctrl+Alt+Q after selecting text and the translation appears next to the pointer.

Key Features

  • Translate on selection: select text in a browser, document, or any app that supports copying, and a popup appears near the pointer; press Esc or click outside to dismiss it
  • Translation and lookup split: long passages become Simplified Chinese, while a single English word or a 1-5 word phrase returns IPA, meanings, usage, examples, and etymology
  • Streaming output: text appears while it is generated, with stop, retry, copy, and manual paste controls
  • Your own model and key: the default endpoint is https://api.deepseek.com with model deepseek-flash, and any compatible endpoint that accepts the same request parameters also works
  • Markdown rendering: headings, bold, lists, quotes, and code formats make long translations easier to scan
  • Tray and hotkey: the app stays in the tray, the shortcut is remappable, and startup is opt-in
  • Encrypted key storage: the API key is encrypted with Windows DPAPI for the current user and never written to logs in plain text

Interface and Operation

  • Popup: anchored next to the mouse pointer with scrolling content and stop, retry, copy, and settings controls
  • Hotkey: Ctrl+Alt+Q by default, and Ctrl+Enter inside the popup translates again; selection is read by simulating a copy, and the previous clipboard is restored when possible
  • Settings page: opens on first launch for the key, endpoint, model name, and shortcut
  • Result cache: at most 32 results are held in the current process and cleared on exit

Target Audience

  • Developers who read English documentation daily
  • English learners who look words up often
  • Office users who would rather not paste text into a web translator
  • Users who want to bring their own model and API key

Quick Start

  1. Download LightTranslate-Setup-1.0.0-windows-x64.exe from Releases, or run the portable LightTranslate.exe directly
  2. On first launch, open Settings and enter your DeepSeek API key, keeping the default endpoint https://api.deepseek.com and model deepseek-flash
  3. Select text in any window that supports copying and press Ctrl+Alt+Q
  4. Use the retry button in the popup to translate again, and press Esc to dismiss it

Core Advantages

  • No relay: requests go straight to the provider you configure; there is no project-operated relay server and no telemetry
  • Single-file implementation: all logic lives in src/LightTranslate.cs, and the build output is about 109 KB, which is easy to audit yourself
  • Clear privacy boundary: text is read only when you trigger a translation, the key is encrypted, and logs keep only exception types, stacks, and process events
  • Predictable cost: you pay the provider for actual usage; a web account membership is not the same as API credit

System Requirements

Item Requirement
OS Windows 10 / 11
Architecture x64
Runtime .NET Framework 4.8
Network Reachable API endpoint
Install rights Per-user install, no administrator

Notes

  • Generated lookup content: IPA and etymology come from the model and may be wrong, so verify them when accuracy matters
  • Endpoint requirements: compatible services must support streaming Chat Completions and thinking.type = disabled; a service labelled OpenAI-compatible is not necessarily usable here
  • Config location: settings live in %APPDATA%/LightTranslate/settings.json and hold only the encrypted key; error logs are kept for 48 hours
  • Credit source: a DeepSeek web membership cannot pay for API calls, so API billing must be enabled separately

Release history

Sort