com.github.mvysny.karibudsl.v10.Utils.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of karibu-dsl Show documentation
Show all versions of karibu-dsl Show documentation
Karibu-DSL, Kotlin extensions/DSL for Vaadin
The newest version!
package com.github.mvysny.karibudsl.v10
public object Utils {
public val messages: Map = mapOf("cantConvertToInteger" to "Can't convert to integer",
"cantConvertToDecimal" to "Can't convert to decimal number",
"from" to "From (inclusive):",
"to" to "To (inclusive):",
"set" to "Set",
"clear" to "Clear",
"all" to "All"
)
}
/**
* Change this function to provide a proper i18n for your apps. For a list of all keys used by Karibu-DSL see [messages].
*/
public var karibuDslI18n: (key: String) -> String = { key: String ->
Utils.messages[key] ?: key
}