← Назад к ресурсам

Translator

Provides real-time translation for Minecraft, including chat messages, scoreboards, bossbars, titles, and tooltips, helping players enjoy maps and servers in different languages.

Modrinth utility

Описание

This mod serves as a translation tool within the game, designed to translate text found in various in-game elements without altering world data. It supports translating text in the chat window, scoreboard, bossbar, title, tooltip, sign, book content, entity names, and more. ## Key Features - **Non-Intrusive Translation:** Ensures that all functionalities do not modify the game world data. - **Multiple Translation Modes:** Supports automatic translation, click-to-translate, hotkey translation, and more. - **Screen OCR Recognition:** Can recognize text on screen and translate it. - **Hotkeys:** - Press **U** to open translation options. - Press **O** to initiate screen recognition (OCR). ## In-Game Commands - `/transconfig config`: Open the translator configuration screen to set up translation services, API keys, and other options. Can also be accessed via the Mod Menu. - `/transconfig language `: Set the source and target languages for translation. - `/transconfig chatformat `: Set the chat translation display format. - `/transconfig clearcache`: Clear the translation cache. - `/translate `: Command to translate provided text. - `/translate-re `: Reverse translation command, translating from the target language back to the source language. ## Supported Translation Services The mod comes equipped with integration for the following translation services: - **OpenAI** (with custom prompt support) - **Baidu Translate** - **Youdao Translate** Users must obtain their own API keys from the respective platforms, then configure the translators via the Mod Menu or the `/transconfig config` command. ### Custom OpenAI Prompt If you use the OpenAI translator, you can edit the `.minecraft/config/translator/prompt.md` file to customize the translation prompt, allowing you to adjust translation style, terminology preferences, and more. Run `/transconfig reload` after making changes to apply them. --- > **Note:** The above instructions apply to version **3.0.0 and above**. For versions below 3.0.0, please refer to the [legacy project repository](https://github.com/xkgt/Translator) for documentation.