expect interface TranslatorOption : TranslatorOptionCommon (source)
Provides options to create a Translator -- the platform specific interface might provide further options.
abstract val localeOrderDecider: <ERROR CLASS>
The previously chosen LocaleOrderDecider. |
|
abstract val translationSupplier: <ERROR CLASS>
The previously chosen TranslationSupplier. |
open fun
Uses CoreFactory.newTranslator as Translator where the specified translationSupplier is used to retrieve translations, the specified localeOrderDecider to determine candidate java.util.Locales and primaryLocale is used as primary java.util.Locale and the optional fallbackLocales as fallback java.util.Locales. |
abstract fun withDefaultTranslator(primaryLocale: <ERROR CLASS>, vararg fallbackLocales: <ERROR CLASS>): ObjectFormatterOption
Uses CoreFactory.newTranslator as Translator where the specified translationSupplier is used to retrieve translations, the specified localeOrderDecider to determine candidate Locales and primaryLocale is used as primary Locale and the optional fallbackLocales as fallback Locales. |
|
abstract fun withTranslator(factory: (<ERROR CLASS>, <ERROR CLASS>) -> <ERROR CLASS>): ObjectFormatterOption
Uses the given factory to build a Translator. |
fun <T, A> A.asExpect(): <ERROR CLASS><T>fun <T : Any, A> A.asExpect(assertionCreator: <ERROR CLASS><T>.() -> Unit): A
Turns Assert or AssertionPlantNullable into an Expect so that you can use new functionality which is not available on Assert/AssertionPlantNullable. |