A fast, lightweight, and AI-powered desktop translation application built with Rust and Tauri. GPTranslate provides instant translation between multiple languages with global hotkey support, system tray integration, and a beautiful, responsive user interface.
- Configure custom keyboard shortcuts (e.g.,
Ctrl+Q) for instant clipboard translation - Works system-wide, even when the app is minimized or hidden
- Automatically captures clipboard content and translates it
- Azure AI Translator - β Recommended - Microsoft's fast, dedicated translation service with 2M free characters/month
- OpenAI GPT Models - High-quality translations with context awareness
- Azure OpenAI - Enterprise-grade translation with custom deployments
- Ollama - Local AI models for privacy-focused translation
- Automatic language detection with intelligent switching
- Alternative target language selection when source equals target
- Context-aware prompting for better translation quality
- Alternative translation suggestions for selected text
- Clean, responsive design built with Svelte 5 and TailwindCSS
- Theme support - Auto, Light, and Dark themes with system detection
- System tray integration - Minimize to tray for background operation
- Real-time translation with configurable auto-translation settings
- Persistent translation history with smart deduplication
- Export and manage translation entries
- Clear or delete individual translations
- Favorite language management for quick access
- Model management - Configure multiple models per provider
- Custom prompts - Customize translation behavior
- Auto-start - Launch with system startup
- Fallback providers - Configure alternative translation sources
- Debounce settings - Control auto-translation timing
- Visit the Releases page
- Download
GPTranslate_2.0.0_x64-setup.exe - Run the installer and follow the setup wizard
winget install PhilBerndt.GPTranslate- Launch GPTranslate after installation
- Configure Azure AI Translator (recommended for speed and cost):
- Sign up for free Azure account at azure.microsoft.com/free
- Create Azure AI Translator resource at portal.azure.microsoft.com
- Add your API key and region in GPTranslate settings
- Alternative providers (optional):
- OpenAI: Add your API key
- Azure OpenAI: Configure endpoint, API key, and deployment
- Ollama: Set up local Ollama server URL
- Select your target languages (primary and alternative)
- Configure global hotkey (optional)
- Start translating!
- Type or paste text in the input field
- Select source and target languages (or use auto-detection)
- Translation appears instantly with auto-translation enabled
- Copy text to clipboard from any application
- Press your configured hotkey (e.g.,
Ctrl+Q) - GPTranslate activates and translates clipboard content automatically
- Select translated text in the output area
- Click "Get Alternatives" to see different translation options
- Choose the best translation for your context
- Unified Configuration Directory: All settings and history now stored in
~/.config/gptranslate/gptranslate.json(XDG standard) - Smart Language Pre-Detection: Advanced language detection with automatic target switching for better accuracy
- Enhanced Translation Services: Improved AI provider integration with better error handling and retry logic
- Alternative Translation Support: Generate multiple translation options for better accuracy
- Improved UI Consistency: Refined interface with better spacing, theme consistency, and user experience
- Tailwind CSS v4: Updated to latest Tailwind CSS for better performance and modern styling
- Updated Dependencies: Latest Tauri 2.x, Svelte 5, and modern web stack
- Better Performance: Optimized translation processing and UI responsiveness with whatlang detection
- Enhanced Model Management: Better configuration and management of AI models across providers
- Improved Error Handling: More robust error messages and fallback mechanisms
- Duplicate Request Prevention: Smart request deduplication to prevent unnecessary API calls
- Fixed language switching logic with pre-detection for more reliable target language selection
- Improved clipboard handling and global hotkey reliability
- Better theme detection and application across the interface
- Resolved issues with translation history deduplication and management
- Enhanced Azure OpenAI endpoint parsing and deployment detection
- Modern reactive framework with Svelte 5 runes
- TailwindCSS + DaisyUI for responsive, beautiful UI components
- TypeScript for type safety and better development experience
- High-performance Rust backend for system integration
- Tauri framework for secure, lightweight desktop application
- Cross-platform compatibility with native performance
- Language Support: 100+ languages with comprehensive language detection via whatlang
- System Integration: Global hotkeys, system tray, auto-start
- Configuration: XDG-compliant storage (
~/.config/gptranslate/gptranslate.json) - Performance: Fast translation with intelligent caching and request deduplication
- Local-first approach: All configuration and history stored locally in
~/.config/gptranslate/ β οΈ Security Notice: API keys are currently stored in plain text configuration. Secure credential storage is planned for future releases- No telemetry: No usage data collected or transmitted
- Ollama support: Option for completely offline translation with local models
Azure AI Translator is our recommended translation provider for several key reasons:
- π° Generous Free Tier: 2 million characters per month at no cost
- β‘ Superior Speed: Dedicated translation service optimized for performance
- π― High Accuracy: Purpose-built for translation with extensive language support
- π§ Easy Setup: No credit card required for free tier
- π Global Coverage: Microsoft's enterprise-grade infrastructure
Getting Started with Azure AI Translator:
- Create free Azure account: azure.microsoft.com/free
- Create Translator resource: portal.azure.microsoft.com
- Copy your API key and region to GPTranslate settings
We welcome contributions! Please see our Developer Documentation for comprehensive setup instructions, architecture details, and development guidelines.
# Clone the repository
git clone https://github.com/philberndt/GPTranslate.git
cd GPTranslate
# Install dependencies
npm install
# Start development server
npm run tauri devDevelopment Commands:
npm run tauri dev- Start development servernpm run lint- Check code qualitynpm run format- Format codecargo fmt && cargo clippy- Rust formatting and linting
For detailed development workflows, testing, and architecture information, see DEVELOPERS.md.
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with Tauri for the desktop framework
- UI powered by Svelte and TailwindCSS
- Icons from Heroicons
- Language data and utilities for comprehensive language support
- Website: gptranslate.berndt.no
- Issues: GitHub Issues
- Developer: Phil Berndt ([email protected])
Made with β€οΈ by Phil Berndt | Powered by Rust & Svelte