Chat Translation Mod
A mod that translates Minecraft chat messages into your specified language with a single click. The translation is done via the Google Apps Script (GAS) API. It works on the Fabric environment, Minecraft Version 1.21.11.
If setting it up is too much trouble, you can just copy the following link and paste to API URL (config/translator-url.txt):
https://script.google.com/macros/s/AKfycbyoiiASzJr_SNFV9Wn5388f03C8jKuz6IQMrRVt-AejbhKaDjO0BXxvQw_zp2rkv05g-w/exec
How to Use
You must complete these steps to enable translations.
Step 1. Log in to your Google account and go to https://script.google.com/.
Step 2. Create a new project. You can name it anything you like, such as "Minecraft Translation API".
Step 3. Select and delete all the default code, then paste the following code:
function doGet(e) {
var {text, target = 'ja', source = ''} = e.parameter;
var translatedText = LanguageApp.translate(text, source, target);
return ContentService.createTextOutput(translatedText).setMimeType(ContentService.MimeType.TEXT);
}
Step 4. Click the "Deploy" button and choose "New deployment". Set the type to "Web app". You can enter any description. Set "Execute as" to "Me" and "Who has access" to "Anyone", then click the "Deploy" button.
Step 5. Copy the generated Web App URL (which looks like https://script.google.com/macros/s/.../exec) to complete this step. Do not share this URL with anyone!
Step 6. Place the downloaded .jar file into your mods folder.
Step 7. Launch Minecraft once and close it. This will generate the configuration files in your config folder.
Step 8. Open translator-url.txt, paste the translation API URL (GAS, etc.) you prepared in the previous step, and save the file.
Step 9. Open translator-lang.txt to change the target language code (e.g., en for English, ja for Japanese). Default language is Japanese(ja).
- If you have any questions, feature requests, or encounter issues, please send me a DM on Discord.
- Discord Username: @nuyuchi
External resources
Project members

nuyuchi
Member

