← all repositories
HIllya51/LunaTranslator

Hooking Visual Novels to Translate Them in Real Time

LunaTranslator hooks into running visual novels—on PC or emulated console—to extract and translate text in real time, so you don’t need fan patches.

12.5k stars C++ App BuildersOther AI
LunaTranslator
Velocity · 7d
+15
★ / day
Trend
accelerating
star history

What it does

LunaTranslator is a Windows application that extracts text from running visual novels in real time. It primarily uses memory HOOK to pull dialogue strings from the game process, feeds them into almost any translation engine—including large language models and offline dictionaries—and can embed the translated text directly back into the game window. When hooking fails, it falls back to a built-in high-precision OCR model or other external OCR engines.

The interesting bit

Instead of treating translation as a single pipeline, the tool stacks multiple text-acquisition adapters: Win32 process hooking, emulator hooking for NS/PSP/PSV/PS2 titles, screen OCR, and even Windows speech recognition. It then layers on language-learning utilities like Japanese furigana annotation, AnkiConnect integration, and text-to-speech, making it as much a study aid as a subtitle generator.

Key highlights

  • Hooks text from nearly all popular and niche PC visual novels, plus most emulated console games.
  • Embeds translations directly into supported games for an immersive, first-party experience.
  • Built-in OCR with support for many additional online and offline OCR backends.
  • Japanese word segmentation, kana annotation, AnkiConnect, and Yomitan plugin support.
  • Broad online and offline text-to-speech engine support; Windows speech recognition on Windows 10/11.

Caveats

  • Windows-only; the HOOK and speech recognition layers depend on Win32 and Windows 10/11.

Verdict Worth a look if you are reading untranslated visual novels or mining vocabulary from Japanese games. Not for you if you already have translated releases or work outside Windows.

Frequently asked

What is HIllya51/LunaTranslator?
LunaTranslator hooks into running visual novels—on PC or emulated console—to extract and translate text in real time, so you don’t need fan patches.
Is LunaTranslator open source?
Yes — HIllya51/LunaTranslator is open source, released under the GPL-3.0 license.
What language is LunaTranslator written in?
HIllya51/LunaTranslator is primarily written in C++.
How popular is LunaTranslator?
HIllya51/LunaTranslator has 12.5k stars on GitHub and is currently accelerating.
Where can I find LunaTranslator?
HIllya51/LunaTranslator is on GitHub at https://github.com/HIllya51/LunaTranslator.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.