Skip to content

LunaTranslator - Open Source GalGame Translator

Chat Settings Option

In the New API dashboard, under System Settings -> Chat Settings, you can add the following shortcut option. This allows you to easily configure LunaTranslator with a single click from the Token Management page:

{ "LunaTranslator": "lunatranslator://llmapi/base64?data={cheryConfig}" }

Info

LunaTranslator is an open-source and free GalGame translator dedicated to providing a native-level GalGame gameplay experience.

Features

  • HOOK Primarily uses HOOK to extract game text, compatible with almost all common and niche GalGames.

  • In-game Translation Some games support direct in-game translation for an immersive experience.

  • Emulator HOOK For most games on NS/PSP/PSV/PS2, it supports hooking emulators to directly read game text.

  • OCR Features a built-in high-accuracy OCR model and supports many other online & offline OCR engines for flexible text extraction.

  • Rich Translation APIs Supports almost all translation engines, including Large Language Models (LLMs), offline translation, etc.

  • Language Learning Supports Japanese word segmentation and furigana annotation, AnkiConnect, and the Yomitan plugin.

  • Text-to-Speech (TTS) Supports a large number of online & offline text-to-speech engines.

  • Speech Recognition On Windows 10 and Windows 11, Windows Speech Recognition can be used.

Installation

Please download and install from the official documentation: LunaTranslator Docs - Download & Launch & Update

Using NewAPI in LunaTranslator

LunaTranslator supports integration with locally deployed NewAPI instances and third-party services built on NewAPI.

One-Click Configuration

  1. In the New API dashboard, go to System Settings -> Chat Settings and add the following shortcut option:

    { "LunaTranslator": "lunatranslator://llmapi/base64?data={cheryConfig}" }
    

    add_config

  2. In the NewAPI -> Dashboard -> Token Management tab, select the token you want to use in LunaTranslator. Click the dropdown option next to the chat button and select LunaTranslator. This will redirect you to the LunaTranslator application and automatically configure the API Address and API Key.

    Redirect to LunaTranslator

  3. In LunaTranslator -> Settings -> Translation Settings -> Large Language Model, a new API configuration will be automatically added. Click the edit button to proceed.

    api_setting

  4. Click the refresh button next to the model dropdown to fetch the list of models from the NewAPI platform. Select or enter a model name, then click OK to save.

    setting_model

  5. Check the toggle switch next to the new_api large model configuration. If it's off, turn it on to start using the API.

    open_config

Manual Configuration

  1. In NewAPI -> CONSOLE -> Token Management tab to get your API Key.

    Get API Key

  2. In LunaTranslator -> Settings -> Translation Settings -> Large Language Model and click "Add".

    Add API

  3. Copy the Generic Large Model API template to create a new API configuration.

    Add API 2

  4. In the NewAPI configuration window, fill in your API Address and API Key.

    Set API 1

    Set API 2

  5. Click the refresh button next to the model dropdown to fetch the list of models from the NewAPI platform. Select or enter a model name, then click OK to save.

    Set API 3

  6. Click the toggle button next to NewAPI to enable the API and start using it.

    Enable API

For more usage details, please refer to the official LunaTranslator documentation: LunaTranslator Docs - Large Model Translation API