translate

open fun translate(key: String, args: Array<Any>): MutableComponent

Gets the text for the given language key.

Return

TranslatableContents or LiteralContents depending on whether SERVER_TRANSLATIONS is loaded.

Parameters

key

lang key.