Skip to content

0xJackJun/Translatio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeepSeek Translate Chrome Extension

A Chrome browser extension for text translation using the DeepSeek API.

Features

  • 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

Installation

  1. Download or clone this repository to your local machine
  2. Open Chrome browser and navigate to chrome://extensions/
  3. Enable "Developer mode" in the top-right corner
  4. Click the "Load unpacked" button
  5. Select the folder containing this project's files

How to Use

  1. After installing the extension, click the extension icon to open the settings window
  2. Enter your API key and select the target translation language
  3. Optional: Enable the "Use streaming response" option for real-time translation results
  4. Click the "Save Settings" button to save your configuration
  5. Select the text you want to translate on any webpage
  6. Right-click the selected text and choose "Translate selected text with DeepSeek"
  7. The translation result will appear in a popup window in the bottom-right corner of the page

About DeepSeek API

DeepSeek API uses an OpenAI-compatible API format. This means:

  1. You can access DeepSeek API services using OpenAI-compatible API calls
  2. You can integrate with DeepSeek API using any code or application compatible with the OpenAI API

Notes

  • 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

File Structure

  • manifest.json - Extension configuration file
  • background.js - Background script that handles right-click menu and message passing
  • content.js - Content script that handles translation display on the page
  • popup.html - Extension popup window
  • popup.js - Handles popup window interaction logic
  • images/ - Folder containing extension icons

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors