- Introduction
- Screenshots
- Features
- Installation Guide
- Usage Instructions
- Configuration
- Shortcuts
- Notes
- Contributions
- License
- Download
- HΖ°α»ng dαΊ«n tiαΊΏng Viα»t
- Translator AI is an innovative AI-integrated translation userscript that allows users to effortlessly translate text, images, media, and web pages directly in their browser. It utilizes the Google Gemini API to deliver high-quality translation results.
- This tool supports a variety of functions, including text translation, image translation, audio and video translation, and notably, manga translation with overlay text, enabling users to conveniently experience content in their desired language.
- Quick translation when text is highlighted
- Popup translation with an attractive interface
- Advanced translation with vocabulary analysis
- Automatic translation in input fields
- Translate image files from your computer
- Capture and translate screenshots
- Translate images on the web
- Manga translation with overlay text
- Supports audio files (MP3, WAV, OGG,...)
- Supports video files (MP4, WEBM,...)
- Automatically generate SRT subtitles
- Translate entire web pages
- Automatically detect language
- Translate HTML and PDF files
- Exclude specific elements as options
-
Firefox (Recommended):
- Install Violentmonkey (Open source, recommended) or Tampermonkey
- Open Firefox Add-ons and click "Add to Firefox"
-
Chrome:
- Install Violentmonkey or Tampermonkey from the Chrome Web Store
- Click "Add to Chrome"
- Visit Google AI Studio
- Sign in with Google
- Click "Create API Key"
- Copy the API key
- Click the Violentmonkey icon
- Go to Dashboard > Utilities
- Paste the script link into "Install from URL" (script link at the end of this document)
- Confirm the installation
- Open settings (Alt + S or tap 4 fingers)
- Choose Gemini as the provider
- Enter the API key
- Save the settings
- Highlight the text to be translated
- Choose the type of translation:
- Single click: Quick translation
- Double click: Popup translation
- Hold click: Advanced translation
- π : Translate to target language
- π : Translate to source language
- Alt + T: Quick translation
Click "Translation Tools" in the bottom right of the screen:
- Translate Page
- Translate Image/OCR
- Translate Media
- Translate File
| Shortcut | Function |
|---|---|
| Alt + F | Translate page |
| Alt + Q | Quick translation |
| Alt + E | Popup translation |
| Alt + A | Advanced translation |
| Alt + T | Translate input |
| Alt + S | Open settings |
| Gesture | Function |
|---|---|
| 2 fingers | Popup translation |
| 3 fingers | Advanced translation |
| 4 fingers | Open settings |
| 5 fingers | Toggle Tools |
- Light/Dark theme
- Font size
- Position of the translate button
- Provider: Gemini AI
- API Keys
- Model selection
- Translation prompt
- Shortcuts
- Cache
- Backup/Restore
- A valid Gemini API key is required to access the translation services
- Limit of 5 requests/10s
- Cache speeds up translation
- Supports offline translation with cache
- Automatic language detection
- Supports multiple languages
- Detailed usage notes: https://voz.vn/t/script-dung-ai-%C4%91e-dich-moi-thu-text-anh-audio-video.1072947/#-huong-dan-su-dung
All contributions are welcome! Please:
- Fork the project
- Create a new branch
- Commit changes
- Push to branch
- Create a Pull Request
This project is distributed under the GNU General Public License v3.0. See LICENSE for more details.
- If you appreciate this userscript, please consider supporting me with a donation!
- Please visit the following link for donation information:
- Patreon: https://www.patreon.com/c/king1x32/membership?
- Website: https://kingsmanvn.pages.dev
- Patreon: https://www.patreon.com/c/king1x32/membership?
-
Normal version: https://greasyfork.org/vi/scripts/529348-king-translator-ai
-
Compressed version (lighter, smoother): https://raw.githubusercontent.com/king1x32/compiledUserscripts/release/release/King20Translator20AI.user.js
















