translate

fun translate(id: String, language: String? = null, group: String = "common", placeholders: Map<String, String> = emptyMap()): String

Get the translation for the given id in the given language

Return

The translation. If the translation is not found, the id is returned

Parameters

id

The id of the translation

language

The language of the translation. Set to null to use the default language. Defaults to null

group

The group (folder) of the translation. Defaults to "common"

placeholders

The placeholders to replace in the translation. Defaults to empty map