🐝 BeeTranslate - VS Code Extension
Translate text as efficiently as a bee works! BeeTranslate brings AI-powered translation to VS Code with Claude.
Features
- 🚀 Quick Translation: Select text and press
Cmd+Shift+T (Mac) or Ctrl+Shift+T (Windows/Linux)
- 🌍 Multiple Languages: Supports English, French, Spanish, German, Italian, Portuguese, Japanese, and Chinese
- 🆓 Free to Use: Works out of the box with LibreTranslate (no API key required)
- ⚡ Optional OpenAI Integration: Use your own OpenAI API key for even better translations
Usage
- Select text in your editor
- Press
Cmd+Shift+T (Mac) or Ctrl+Shift+T (Windows/Linux)
- Choose your target language from the menu
- The selected text will be replaced with the translation
Example
Select this French text:
Bonjour, comment allez-vous?
Press Cmd+Shift+T, select "🇬🇧 Translate to English", and it becomes:
Hello, how are you?
Configuration
Using OpenAI (Optional)
For better translation quality, you can configure your OpenAI API key:
- Open VS Code Settings (
Cmd+, or Ctrl+,)
- Search for "Quick Translate"
- Enter your OpenAI API key in the "Api Key" field
Settings
quickTranslate.apiKey: Your OpenAI API key (optional)
quickTranslate.defaultSourceLanguage: Default source language (default: "auto")
quickTranslate.defaultTargetLanguage: Default target language (default: "en")
Installation
From VSIX file
- Download the
.vsix file
- Open VS Code
- Go to Extensions view (
Cmd+Shift+X or Ctrl+Shift+X)
- Click the "..." menu at the top
- Select "Install from VSIX..."
- Choose the downloaded file
From source
- Clone this repository
- Run
npm install
- Run
npm run compile
- Press
F5 to open a new VS Code window with the extension loaded
Development
Building
npm install
npm run compile
Testing
Press F5 in VS Code to open an Extension Development Host window where you can test the extension.
Packaging
npm install -g @vscode/vsce
vsce package
This will create a .vsix file that you can install or share.
Supported Languages
- 🇬🇧 English
- 🇫🇷 French
- 🇪🇸 Spanish
- 🇩🇪 German
- 🇮🇹 Italian
- 🇵🇹 Portuguese
- 🇯🇵 Japanese
- 🇨🇳 Chinese
Notes
- Free Service: By default, the extension uses LibreTranslate's free API. This works well for most use cases but may have rate limits.
- OpenAI: If you provide an OpenAI API key, translations will use GPT-3.5-turbo for higher quality results.
- Internet Required: Both translation services require an internet connection.
Troubleshooting
Translation fails
- Check your internet connection
- If using OpenAI, verify your API key is correct and has available credits
- The free LibreTranslate service may occasionally be slow or unavailable
Keyboard shortcut doesn't work
- The default shortcut is
Cmd+Shift+T (Mac) or Ctrl+Shift+T (Windows/Linux)
- If this conflicts with another extension, you can change it in VS Code's Keyboard Shortcuts settings
License
MIT
Contributing
Contributions are welcome! Feel free to open issues or submit pull requests.