This is a powerful Chrome extension that can translate subtitles from any website into different languages in real-time. It's no longer limited to specific video platforms but supports user-defined subtitle translation for any website.
- Supports subtitle translation for any website
- Uses OpenAI API for high-quality translation
- Supports locally deployed Ollama AI models
- Users can customize target websites and DOM selectors
- Real-time translation without page refresh
- Supports multi-language translation
- Customizable subtitle style and position
- Support for third-party professional translation interfaces, as OpenAI and Ollama translation quality is not controllable
First method: Install from the Chrome Web Store (link to be updated)
Second method: Download from WeChat Official Account or download the source code to build
- Step 1:
Follow the WeChat Official Account: 影音下午茶 and reply '工具下载'
Open your Google Chrome or new version of Edge browser
![image](https://private-user-images.githubusercontent.com/25706676/356869113-26087174-c69d-4649-8fa7-feda31e6cce1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM2NTA1MjAsIm5iZiI6MTcyMzY1MDIyMCwicGF0aCI6Ii8yNTcwNjY3Ni8zNTY4NjkxMTMtMjYwODcxNzQtYzY5ZC00NjQ5LThmYTctZmVkYTMxZTZjY2UxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE0VDE1NDM0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM5ZDFkNzk2MmU1MTg1ODYyNmNiNGFlYWZhYjgyYzFiNWNjOGIzZTE1YTJjMGFiZGJiOGNmZDlmNjdmOTkwNTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.kzzO5yxX7f0YESaLdsjuAITVVhQp89DQ9GbFYfr0Lek)
Results:
v3.0.0
- Basic translation
- Netflix video support
- Lynda video support
- LinkedIn video support
- HBO Now video support
- HBO Max video support
- Hulu video support
- Amazon video support
- Paramount+ video support
- Disney+ video support
- simplilearn.com support
- Yandex translation API integration
- Azure Cognitive Services
- OpenAI
- Ollama
- Subtitle styling options
- After installing the extension, click the extension icon to open the configuration panel
- Choose the translation API (OpenAI or Ollama)
- Enter the necessary API keys or configuration information
- Add the domain of the website you want to translate subtitles for and the corresponding DOM selector
- Save the settings and refresh the target webpage
- Select OpenAI in the configuration panel
- Enter your OpenAI API key
- Choose an appropriate model (e.g., gpt-3.5-turbo)
- Configure the proxy URL
- Install Ollama: Visit Ollama official website to download and install
- Pull the required model:
ollama pull qwen:4b # recommend qwen
- Select Ollama in the extension configuration panel
- Enter the Ollama service URL (default is http://localhost:11434)
- Start the local Ollama server:
ollama serve
- Proxy local Ollama to HTTPS:
- Download https-local-cli, navigate to the directory, and run `npm link` to generate local SSL files
- Use ollama-proxy-https, run `npm start` to start the proxy service, enabling local interface translation (fastest speed, lowest latency) `
- In the configuration panel, add the domain of the website you want to translate subtitles for
- Specify the correct DOM selector for that website to locate subtitle elements
- Save the settings and refresh the target webpage to take effect
- Ensure you have sufficient API usage quota
- Ollama local deployment requires higher hardware configuration, please choose an appropriate model based on your device performance
- First-time use may require some time to load and initialize the model
Contact via WeChat Official Account
There are related plugin usage tutorials. Follow and reply 'Translation Tool' to get it. Follow and reply '工具下载' to get the latest version. Regular sharing of audiovisual information worth watching.
Contributions are welcome! Just send a PR for fixes and documentation updates, and open an issue for new features beforehand. Make sure tests pass and coverage remains high. Thank you!