
Server I18n API
This is a server-side mod that provides internationalization (i18n) capabilities exclusively for modifications that operate on the server side.
Language detection happens automatically, so players don't need to perform any additional actions for it to work correctly.
Important note: This modification doesn't require installation on the client and functions exclusively on the server side.
Guide for developers
To integrate the localization system into your server-side mods, developers need to place language JSON files in the path data/<mod ID>/lang/
, following the standard Minecraft resource pack format.
The main API is represented by the ServerI18n
class with two key methods:
Text.literal(ServerI18n.translate(player,"translation key","arg1","arg2"))
ServerI18n.broadcast(server,"translation key","arg1","arg2")