Klarity API
object KlarityAPI
Main singleton of Klarity. This is the instance you will interact with.
Author
TOTHTOMI
Since
Jul. 23, 2023
Functions
Link copied to clipboard
Configures Klarity
Link copied to clipboard
fun translate(key: String, defaultValue: String? = null, values: Map<String, String> = emptyMap(), language: String = config.defaultLanguage): String
Translates a key to a string using the specified language, values and default value. If scripting is enabled, parses the string as a script and applies the middlewares.