| .github/workflows | ||
| electron | ||
| src | ||
| .gitignore | ||
| .prettierrc | ||
| index.html | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| preview.png | ||
| README.md | ||
| vite.config.js | ||
Lucy Translator
A lightweight, floating Windows translation app. Select text in any application, press Alt + Q, and get an instant translation.
Features
- Global Shortcut:
Alt + Qto capture and translate. - Floating Window: Appears near your mouse cursor. Glassmorphism design.
- System Tray: Runs in background. Minimizes to tray.
- Translation: Powered by Google Translate (via
google-translate-api-x). - Native Input: Uses
InputAPI (viakoffi) to simulateCtrl+Cwithout blocking other keys.
Development
Prerequisites
- Node.js (LTS)
- Windows (for native API support)
Setup
npm install
Run
npm run electron:dev
Build
To create a Windows installer (.exe):
npm run dist
The output can be found in the release/ directory.
Formatting
npm run format
Configuration
- Shortcut:
Alt+Q(Hardcoded inelectron/main.js) - Target Language: Simplified Chinese (
zh-CN)
License
MIT License
Copyright (c) 2026 Cheng Gu
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

