Skip to content

Repository files navigation

Highlight Translate

Select text on any webpage and instantly translate it to Chinese, or improve your writing with AI-powered Grammar & Humanize.

Release Chrome Web Store License

Features

  • Highlight any text on a webpage to translate to Chinese
  • Grammar & Humanize (sparkle icon) -- improve, rewrite, or polish selected text using Gemini AI
  • Custom prompt support -- define your own improvement instructions (e.g. "make it professional")
  • Inline translate icon appears near selection
  • Instant popup with translation or improved results
  • Supports single words and full sentences
  • Auto-detects source language
  • Works on all websites, including LinkedIn post editors
  • Compatible with Chrome and Brave browsers

Installation

Install from Source

  1. Clone this repository
  2. Open Chrome or Brave and go to chrome://extensions/
  3. Enable Developer mode (toggle in the top-right corner)
  4. Click Load unpacked and select this project folder
  5. The extension icon will appear in your toolbar

How to Use

  1. Navigate to any webpage
  2. Select (highlight) the text you want to translate or improve
  3. Click the translate icon to get a Chinese translation, or click the sparkle icon to improve the text
  4. A popup with the result appears -- copy it to clipboard with one click

Settings

After installing the extension, right-click the toolbar icon and select Options (or go to chrome://extensions/, find Highlight Translate, and click Details > Extension options).

Custom Prompt (optional)

You can customize the improvement instructions used by the sparkle icon. Enter any prompt in the Custom Prompt field, for example:

  • "Make the sentence neat, professional, and with a human tone"
  • "Rewrite this in a more formal academic style"
  • "Simplify this for a general audience"

Leave it empty to use the default prompt.

Privacy

Your privacy matters. This extension only sends the selected text to the Google Translate API (for translation) or the Gemini API (for Grammar & Humanize when enabled). No other data is collected, stored, or transmitted. Your API key is stored locally in your browser.

Privacy Policy

Tech Stack

Manifest V3 JavaScript Google Translate Gemini

License

MIT — Built by kianwoon

About

Highlight text and translate to Chinese - Chrome Extension

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages