A fast, lightweight translation app built with Rust + Tauri 2.0 + React.
- Translation: EN<->CN bidirectional translation via LLM API
- Settings: Configurable API key, base URL, and model
- System Tray: Background running with tray icon
- Global Shortcuts: (Planned) System-wide hotkeys
- History: (Planned) SQLite-based translation history
| Layer | Technology |
|---|---|
| Frontend | React 18 + TypeScript + Zustand |
| Backend | Rust + Tauri 2.0 |
| HTTP Client | reqwest |
| Config | TOML |
# Install dependencies
npm install
# Run in development mode
npm run tauri:dev
# Build for production
npm run tauri buildThe app stores settings in ~/.config/pranslator/settings.toml (where ~ is your home directory).
For development, see DEVELOPMENT.md to configure a separate config path.
[llm]
api_key = "sk-your-api-key"
api_base = "https://api.openai.com/v1"
model = "gpt-4o-mini"MIT