banner
Rating
Voted0

Server Translation API (1.20.2) - a library for working with translations.

1
Mod version:1
Game version:1.20.2
The mod has been successfully tested for the absence of viruses
1621.22K168K

Report mod

  • image
modalImage

About This Mod

Server Translation API (1.20.2) is a library for working with translation on the server side. It supports languages per player, using those provided by the client when joining/switching languages.

Usage.

To use it, call the vanilla command Text.translation(...) with the key specified in the code.

Then create a folder data/modid/lang in the mod resources. In it, create en_us.json for the default translation and similar files for other languages (in the same format as the vanilla translation).

An example of a correct language file might look like this:

{

"block.honeytech.pipe": "pipe",

"block.honeytech.item_extractor": "item extractor",

"block .honeytech.trashcan": "trash can",

"block.honeytech.cable": "cable", "cable",

"item.honeytech.diamond_dust": " diamond dust."

"item.honeytech.raw_aluminium": "Raw Aluminum Ore",

"item.honeytech.aluminium_ingot": "Aluminum Ingot".

p>"item.honeytech.copper_wire": "copper wire",

item.honeytech.motor": "motor",

"gui.honeytech.show_recipes": "Show recipes"

}

Similar Mods/Addons

Game Version *

1.20.2 (7abdd5ca74bc413ec88e52213df9ca00.jar)