Klarity

object Klarity

Functions

Link copied to clipboard
fun configure(initializer: ConfigurationBuilder.() -> Unit)

Configures Klarity

Link copied to clipboard
fun translate(key: String, defaultValue: String?, values: Map<String, String> = mapOf(), language: String = KlarityAPI.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.