Skip to content

Chrome extension: translates pages using Sugoi Offline Translation Server or DeepL

Notifications You must be signed in to change notification settings

ilihh/sugoi-web

Repository files navigation

Sugoi-web

Extension for Chromium-based browsers and Firefox to translate Japanese web novels with Sugoi Offline Translation Server (https://www.patreon.com/mingshiba) or DeepL API.

Installation for Chromium-based browsers:

  1. Download the Source code (zip) archive from Releases
  2. Unpack the archive
  3. Open the extensions page (chrome://extensions/)
  4. Enable Developer Mode
  5. Press the "Load Unpacked" button and select a folder with manifest.json

Installation for Firefox:

  1. Download the Source code (zip) archive from Releases
  2. Unpack the archive
  3. Delete manifest.json
  4. Rename manifest-firefox.json to manifest.json
  5. Open extensions page (about:debugging#/runtime/this-firefox)
  6. Press the "Load Temporary Add-on" button and select manifest.json

Using with Sugoi:

  1. Open {Sugoi folder} / backendServer / Program-Backend / Sugoi-Japanese-Translator / offlineTranslation
  2. Run activateOfflineTranslationServer.bat to start server.
  3. Now Translate button can be used

Cross-extension messaging

Messages should be sent from content scripts.

const sugoiWebExtenstionId = "abcdefghijklmnoabcdefhijklmnoabc"; // replace with actual id
const can_translate = await chrome.runtime.sendMessage(sugoiWebExtenstionId, { action: 'canTranslate' });
if (can_translate)
{
	const response = await chrome.runtime.sendMessage(sugoiWebExtenstionId, { action: 'translate' });
}

Supported:

  • syosetu.com
  • kakuyomu.jp
  • pixiv.net/novel

Known Problems:

Error Reason Solution
Sugoi Offline Translation Server is not available. Server not started Start server
Access blocked by AdBlock, Brave Shields, or other similar extensions Temporarily disable those extensions for the current page or add http://127.0.0.1:14366 to the whitelist if possible

About

Chrome extension: translates pages using Sugoi Offline Translation Server or DeepL

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •