t

fun t(locale: Locale?, key: String, vararg args: Any?): String

Gets the localized version of the given key based on the given locale. If the given key does not resolve to any known localized text in a message bundle, this function returns the key. This function will never return null.

Any passes args will allow you to format your message with dynamic data. E.g.,

// myserver.item.name=My item {0}

VitalLocalizationModule.t("myserver.item.name", "VALUE") -> My item VALUE