Adds translations for specified object in several languages
default string in English or name key
object containing two-letter language codes as keys and localized strings in the specified language as values
two-letter language code for current game language
Translates string from English to current game language (if available). Add translations via Translation.addTranslation to apply them
default string in English or name key
string in the current game language or input string if translation is not available
Generated using TypeDoc
Module that can be used to localize mods All default strings (e.g. item names, windows titles, etc.) in the mod should be in English. Add translations to these strings using Translation.addTranslation. For items and blocks translations are applied automatically. For the other strings, use Translation.translate