translate
fun translate(language: String? = null, placeholders: Map<String, String> = emptyMap(), colorize: Boolean = true): String
Translates this Translation to the current language.
Return
The translated string.
Parameters
language
The language of the translation. Set to null to use the default language. Defaults to null
placeholders
The placeholders to use in the translation replacing strings. Example (using placeholder id 'test' and value 'test_value'): '{test}' should return 'test_value'. You can use '{}' or '%%' as placeholder identifiers like '{test}' or '%test%'. Defaults to empty map.