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

commonMain.de.comahe.i18n4k.config.I18n4kConfigDelegateObject.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.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