Skip to content

Repository files navigation

Pranslator

A fast, lightweight translation app built with Rust + Tauri 2.0 + React.

Features

  • 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

Tech Stack

Layer Technology
Frontend React 18 + TypeScript + Zustand
Backend Rust + Tauri 2.0
HTTP Client reqwest
Config TOML

Development

# Install dependencies
npm install

# Run in development mode
npm run tauri:dev

# Build for production
npm run tauri build

Configuration

The app stores settings in ~/.config/pranslator/settings.toml (where ~ is your home directory).

For development, see DEVELOPMENT.md to configure a separate config path.

Example settings.toml

[llm]
api_key = "sk-your-api-key"
api_base = "https://api.openai.com/v1"
model = "gpt-4o-mini"

Recommended IDE Setup

License

MIT

About

Translate and paste result

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages