All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.de.comahe.i18n4k.strings.SimpleLocalizedAttributable.kt Maven / Gradle / Ivy

Go to download

i18n4k is a multiplatform (JVM, JS, native) library and code generator for Kotlin to handle internationalisation (i18n) in your program.

There is a newer version: 0.9.0
Show newest version
package de.comahe.i18n4k.strings

import de.comahe.i18n4k.Locale

/** Simple implementation of [LocalizedAttributable] that always return the given value */
class SimpleLocalizedAttributable(private val value: Any? = null) : LocalizedAttributable {
    override fun getAttribute(attributeName: CharSequence, locale: Locale?): String? =
        value?.toString()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy