Skip to content

SethRobinson/UGTBrowser

Repository files navigation

UGTBrowser Icon

UGTBrowser - Universal Game Translator Browser Extension

A Chrome extension that translates or speaks highlighted text using your own LLM API keys (OpenAI, Anthropic, Google, Elevenlabs).

Manual Installation

Useful if the Chrome Web Store hasn't updated to the latest version yet:

  1. Download: https://github.com/SethRobinson/UGTBrowser/archive/refs/heads/main.zip
  2. Unzip the file to a folder
  3. Enable Developer Mode in Chrome at chrome://extensions
  4. Load unpacked and select the unzipped folder containing manifest.json

Features

  • Translate - High-quality AI translation that streams in-place and explains cultural context
  • Text-to-Speech - Have text read aloud via ElevenLabs or Google Cloud TTS
  • Create Lesson - Generate detailed language breakdowns with readings, meanings, and grammar notes
  • Follow-up Chat - Ask questions about the translated content
Context menu and follow-up chat Create Lesson feature
Translation settings Text-to-speech settings

How to Use

  1. Highlight text on any webpage
  2. Right-click and select from the UGTBrowser menu: Translate, Speak, or Create Lesson
  3. Use the follow-up chat to ask questions about the content

Why tho

Why did I make this? Because the default translate option in Chrome makes MANY MISTAKES with Japanese to English.

Using the best AI models lets you choose quality over speed - when researching old game blogs and such, it's totally worth it.

I use a text-fragment approach that lets the LLM understand the full context (all fragments are sent at once and in order), but still allows us to do a streaming translation with in-place text replacement that doesn't mess up links and images.

WARNING: This extension is free and open source, but the LLMs actually cost money and generally make you put in a credit card to get an API key and charge per use. So just be aware that it can add up. Try Gemini, for example; the first million tokens per month are free.

Note: I used "UGT" in the name because I might add more game-specific features later, so it's more like its big brother project.

AI Disclosure

This project was developed with significant assistance from AI tools. I mean, you can still blame me (Seth) for bugs, but I just wanted to mention it.

Version History

v2.0.0 (Current)

  • Added Text-to-Speech support (ElevenLabs and Google Cloud TTS)
  • Added Create Lesson feature for detailed language breakdowns
  • Added Follow-up Chat to ask questions about translated content
  • Lots of misc tweaks and fixes

v1.0.x

  • Initial public release with core translation functionality

Privacy

API keys and settings are stored locally in your browser only. Nothing is sent except text to your chosen LLM provider. See Privacy Policy.

License

MIT License - see LICENSE.

Credits

Created by Seth A. Robinson - Homepage | Blog | Twitter | Bluesky

About

Chrome browser extension to provide intelligent context-aware inline translation of highlighted text using state-of-the-art AI models (OpenAI, Anthropic Claude, Google Gemini)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors