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
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.
Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and 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.