commonMain.de.comahe.i18n4k.config.I18n4kConfigDelegateObject.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of i18n4k-core Show documentation
Show all versions of i18n4k-core Show documentation
i18n4k is a multiplatform (JVM, JS, native) library and code generator for Kotlin to handle internationalisation (i18n) in your program.
package de.comahe.i18n4k.config
import de.comahe.i18n4k.Locale
import de.comahe.i18n4k.messages.formatter.MessageFormatter
import de.comahe.i18n4k.messages.formatter.provider.DeclensionProvider
import de.comahe.i18n4k.messages.formatter.provider.GenderProvider
/** Implementation of [I18n4kConfig] that delegates request to the provider object */
@Suppress("unused")
class I18n4kConfigDelegateObject(
@Suppress("MemberVisibilityCanBePrivate") var configProvider: I18n4kConfig
) : I18n4kConfig {
override val defaultLocale: Locale
get() = configProvider.defaultLocale
override val locale: Locale
get() = configProvider.locale
override val messageFormatter: MessageFormatter
get() = configProvider.messageFormatter
override val treadBlankStringAsNull: Boolean
get() = configProvider.treadBlankStringAsNull
override val ignoreMessageParseErrors: Boolean
get() = configProvider.ignoreMessageParseErrors
override val genderProvider: GenderProvider
get() = configProvider.genderProvider
override val declensionProvider: DeclensionProvider
get() = configProvider.declensionProvider
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy