Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

README | 中文文档

DUO Logo Duo Translator

An AI-powered translation and writing assistant. Supports webpage translation, selected text translation, writing enhancement, and more.

Features

  • Translation

    • Webpage translation
      • Bilingual translation
      • Bilingual highlighting (Highlight original and translation sentence by sentence)
      • Style settings
      • Website translation rules (per-site translate areas, no-translate areas and custom CSS)
    • Selection translation
      • Dictionary
      • Text-to-speech (TTS)
      • Multiple translation services and a compact interface (optional)
    • Input box translation
    • Paragraph translation
  • AI Writing

    • Correct grammar, polish, translate, and more directly in the input box
    • AI writing workbench
  • Video subtitles (YouTube bilingual subtitles)

    • Look up words on hover
    • Subtitle download
    • Subtitle styles
    • AI sentence segmentation
  • Multiple translation and AI service integrations

    • Translation services: Microsoft, Google, Yandex, browser built-in AI (Chrome and Edge only), DeepL
    • AI: OpenAI, DeepSeek, Gemini, OpenRouter, Claude, Ollama, Custom
  • Sync & Backup

    • Sync methods: Google Drive, WebDAV
    • Automatic sync (on a schedule and after a setting changes)
    • Backup config (import / export a JSON file)
  • Shortcuts

    • Browser shortcuts
      • Translate / Restore page (Alt+S)
      • Translate selection / input box (Alt+A)
      • Translate / Restore mouse-over paragraph (Alt+Q)
      • Open AI writing workbench (Alt+W)
    • Double-tap shortcuts (double-tap Ctrl/Alt)
      • Translate selection
      • Translate input box
      • Translate / restore mouse-over paragraph
  • Customization

    • Function shortcuts (trigger actions with a single press, a long press or a multi-press)
    • Selection translate popup (UI customization)
    • Extension popup (UI customization)

Installation

Add to your browser:

Chrome Web Store Edge Add-ons Firefox Add-ons

Alternatively, you can install it manually using the ZIP file.

Safari (beta) — manual install

Requires Safari 18.4 or later on macOS.

  1. Download duo-translator-<version>-safari-beta.zip from Releases and unzip it. The folder holding manifest.json is the extension — keep it somewhere permanent, Safari reads it from where it sits.
  2. In Safari, open Settings → Advanced and tick Show features for web developers. A Developer tab appears in Settings.
  3. Go to Settings → Developer and turn on Allow unsigned extensions.
  4. Click Add Temporary Extension…, confirm with your Mac password or Touch ID, and select the folder from step 1 (the one containing manifest.json).
  5. Open Settings → Extensions, switch DuoTranslator on, and allow it on every website — the extension rewrites pages in place, so it needs access to the sites you read.

A temporary extension only lives for the current Safari session. Quitting Safari unloads it, and steps 3–5 have to be repeated on the next launch. The store version is not available yet.

Shortcuts can only be edited from Safari 26 onwards, under Safari → Settings → Extensions.

Community

Screenshots

Development

Built with WXT + React. Package manager is pnpm.

  1. Install dependencies: pnpm i
  2. Start the dev build (with HMR): pnpm dev (Firefox: pnpm dev:firefox)
  3. Open chrome://extensions/, enable Developer mode, and load the unpacked extension from .output/chrome-mv3-dev

Other commands:

  • pnpm build — production build to .output/chrome-mv3 (Firefox: pnpm build:firefox, Edge: pnpm build:edge)
  • pnpm zip — package the extension for store upload
  • pnpm test — unit tests (Vitest)
  • pnpm e2e:build && pnpm e2e — end-to-end tests (Playwright)

Links

Thanks to the LINUX DO community for their help and support.

关于 About

AI translation & writing assistant

语言 Languages

TypeScript98.2%
HTML0.7%
CSS0.7%
JavaScript0.5%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
147
Total Commits
峰值: 22次/周
Less
More

核心贡献者 Contributors