explaingit

dr-tsng/polyglotyt

Analysis updated 2026-05-18

153KotlinAudience · generalComplexity · 2/5Setup · moderate

TLDR

An Xposed module that shows bilingual subtitles inside the YouTube Android app, translated via Google, Microsoft, or an OpenAI-compatible API.

Mindmap

mindmap
  root((PolyglotYT))
    What it does
      Bilingual subtitles
      Immersive translation
      Quick CC toggle
    Tech stack
      Kotlin
      Xposed Framework
      Android
    Use cases
      Watch with two languages
      Toggle translation fast
      Pick translation service
    Setup
      Needs rooted device
      Needs Xposed installed
      Android 9 plus

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Watch YouTube videos with both the original captions and a translation shown together on screen.

USE CASE 2

Quickly toggle bilingual translation on or off from a button next to the player's CC control.

USE CASE 3

Choose between Google Translate, Microsoft Translator, or a custom OpenAI-compatible API for subtitle translation.

USE CASE 4

Follow foreign-language videos more easily without pausing to look up a separate translation.

What is it built with?

KotlinXposedAndroid

How does it compare?

dr-tsng/polyglotytv-modal/vmodal_sdk_androidairbnb/viaduct
Stars153152158
LanguageKotlinKotlinKotlin
Setup difficultymoderatemoderatemoderate
Complexity2/53/54/5
Audiencegeneraldeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires a rooted Android device with the Xposed Framework already installed, plus a translation API key if using an OpenAI-compatible service.

No license is stated in the README, so reuse and redistribution terms are unclear.

In plain English

PolyglotYT is an Xposed module for the YouTube Android app that adds bilingual subtitle translation directly inside the video player. Instead of switching between the original captions and a separate translation, it shows both languages together, so you can follow the original wording while reading a translation alongside it. The module offers three ways to display the two languages: the original caption above the translation, the translation above the original, or the translation shown by itself. It automatically figures out the source language from whichever caption language you have selected in YouTube, so there is no need to set that manually for each video. It also adds its own settings entry inside the YouTube app and a quick toggle placed next to the existing closed captions button in the player, making it easy to turn the immersive translation on or off while watching. For the actual translation, PolyglotYT can use Google Translate, Microsoft Translator, or any OpenAI-compatible API, so the choice of translation service is left to the person setting it up rather than being fixed to one provider. Because it is an Xposed module, it only works on an Android device that already has the Xposed Framework installed, specifically one supporting libxposed API 101 or later, running Android 9.0 or newer with a minimum SDK of 28. The README notes it has been tested against YouTube app version 21.25.530. The README is short and does not describe how the module is installed beyond being an Xposed module, nor does it mention a license, so those details are not stated. It is aimed at people who already know how to root an Android phone and manage Xposed modules, since that setup step is assumed rather than explained.

Copy-paste prompts

Prompt 1
Help me install PolyglotYT as an Xposed module on my rooted Android phone.
Prompt 2
Explain the difference between the three subtitle display modes in this module.
Prompt 3
Walk me through configuring an OpenAI-compatible API as the translation service for this module.
Prompt 4
What Xposed Framework and YouTube app versions does PolyglotYT need to work correctly?

Frequently asked questions

What is polyglotyt?

An Xposed module that shows bilingual subtitles inside the YouTube Android app, translated via Google, Microsoft, or an OpenAI-compatible API.

What language is polyglotyt written in?

Mainly Kotlin. The stack also includes Kotlin, Xposed, Android.

What license does polyglotyt use?

No license is stated in the README, so reuse and redistribution terms are unclear.

How hard is polyglotyt to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is polyglotyt for?

Mainly general.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.