▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Chat translator
Chat translator

Chat translator

This mod translates Minecraft chat into multiple languages.

104
0

This mod translates Minecraft chat into multiple languages!

Supported languages:

  • English (english/en)
  • French (french/fr)
  • German (german/de)
  • Russian (russian/ru)
  • Spanish (spanish/es)

Example

Replace this with a description

How select language?

/sw4-translator mylanguage spanish/russian/german/french/english

How does the mod translate messages?

Message Interception - The ChatHud.addMessage() mixin intercepts all incoming chat messages.

Text Extraction - Parses the message, separating the player name from the text:

hello → Player: "Player", text: "hello"

HTTP Request to Google Translate - Sends an asynchronous GET request:

https://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=ru&dt=t&q=hello

sl=auto - autodetect source language

tl=ru - disable language (your selected one)

q=hello - text to translate

JSON Response Parsing - Extracts the translated text from Google's JSON response Add to Chat - Adds a new message with the translation:

Original: , hello!

Translation: привет

Совместимость

Minecraft: Java Edition

1.21.x

Платформы

Поддерживаемые окружения

Клиент

Детали

Лицензия:LicenseRef-All-Rights-Reserved
Опубликован:2 недели назад
Обновлён:2 недели назад
Главная