A Chrome browser extension for text translation using the DeepSeek API.
- Translate selected text via right-click menu
- Support for multiple target languages
- Translation results displayed in a popup window
- Configure custom API endpoints and models
- Support for streaming responses to display translation results in real-time
- Download or clone this repository to your local machine
- Open Chrome browser and navigate to
chrome://extensions/ - Enable "Developer mode" in the top-right corner
- Click the "Load unpacked" button
- Select the folder containing this project's files
- After installing the extension, click the extension icon to open the settings window
- Enter your API key and select the target translation language
- Optional: Enable the "Use streaming response" option for real-time translation results
- Click the "Save Settings" button to save your configuration
- Select the text you want to translate on any webpage
- Right-click the selected text and choose "Translate selected text with DeepSeek"
- The translation result will appear in a popup window in the bottom-right corner of the page
DeepSeek API uses an OpenAI-compatible API format. This means:
- You can access DeepSeek API services using OpenAI-compatible API calls
- You can integrate with DeepSeek API using any code or application compatible with the OpenAI API
- A valid API key must be set before use, otherwise translation will not work
- You can change the target translation language in the settings window at any time
- If you have an OpenAI API key, you can change the API endpoint to OpenAI's endpoint and use the corresponding model names
- Streaming responses display translation results in real-time for a better user experience
manifest.json- Extension configuration filebackground.js- Background script that handles right-click menu and message passingcontent.js- Content script that handles translation display on the pagepopup.html- Extension popup windowpopup.js- Handles popup window interaction logicimages/- Folder containing extension icons