get

fun get(text: String, language: String, activeMods: HashSet<String>? = null): TranslationEntry?

Searches for the translation entry of a given text for a given language. This includes translations provided by mods from activeMods

Return

the translation entry or null when not available

Parameters

text

the input text for the translate entry

language

the inquired language

activeMods

set of the active mods that should include in the search

Sources

jvm source
Link copied to clipboard