Translation Services
Service List
| Service | Authentication | Cost | Description |
|---|---|---|---|
| VS Code Copilot | Zero config | Requires Copilot subscription | Recommended, no extra configuration needed |
| ChatGPT / OpenAI | API Key | Pay per use | Requires OpenAI API Key |
| Google Translation | Free (limited) | Free | No configuration needed, but has rate limits |
| Bing / Azure Translator | API Key | Pay per use | Requires Azure account |
| DeepLX | Local deployment | Free | Requires local service deployment |
| Baidu Translation | APP_ID + Key | Pay per use | Requires Baidu Translation account |
| Tencent Translation | SecretId + SecretKey | Pay per use | Requires Tencent Cloud account |
API Key Acquisition
OpenAI
- Visit OpenAI Platform
- Register/Login
- Go to API Keys page
- Click "Create new secret key"
- Copy the generated API Key (format:
sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
Baidu Translation
- Visit Baidu Translation Open Platform
- Register/Login
- Go to Console
- Enable General Translation API service
- Get APP_ID and Secret Key
Tencent Translation
- Visit Tencent Cloud
- Register/Login
- Enable Machine Translation service
- Go to API Key Management
- Get SecretId and SecretKey
Bing / Azure Translator
- Visit Azure Portal
- Register/Login
- Create Translator resource
- Go to resource → "Keys and Endpoint"
- Copy API Key and Region
DeepLX
- Visit DeepLX or DeepLX GitHub
- Follow instructions for local deployment
- Default URL:
http://127.0.0.1:1188 - No additional configuration needed
Switching Methods
Shortcut Key
Press Alt+Shift+S to quickly switch translation service.
Command Palette
- Press
Ctrl+Shift+P - Type "Switch Translation Service"
- Select the service to use
Service Features
VS Code Copilot
- Pros: Zero config, high translation quality
- Cons: Requires Copilot subscription
- Recommendation: First choice
Google Translation
- Pros: Free, no configuration needed
- Cons: Has rate limits
- Recommendation: Backup service
OpenAI
- Pros: High translation quality
- Cons: Requires API Key, pay per use
- Recommendation: Use when high quality translation is needed
Baidu Translation
- Pros: Domestic service, fast speed
- Cons: Requires account registration
- Recommendation: Recommended for domestic users
Tencent Translation
- Pros: Domestic service, fast speed
- Cons: Requires Tencent Cloud account
- Recommendation: Recommended for domestic users
Service Degradation
When translation service fails, the plugin automatically degrades by priority:
Current service failed → Degrade to next service → All services failed → Degrade to pinyinAuto Language Detection
All translation services support auto language detection, capable of translating:
- Chinese
- Japanese
- Korean
- Russian
- Any other non-English characters