expect interface ReporterBuilder : ReporterBuilderCommon
(source)Provides options to create a Translator or TranslationSupplier -- the platform specific interface might provide further options.
open fun
Uses UsingDefaultTranslator as Translator where the given primaryLocale is used to format arguments of TranslatableWithArgs. |
abstract fun withDefaultTranslationSupplier(): LocaleOrderDeciderOption
Uses a predefined method to create a TranslationSupplier -- see platform specific interface for further information. |
|
abstract fun withoutTranslations(primaryLocale: Locale): ObjectFormatterOption
Uses UsingDefaultTranslator as Translator where the given primaryLocale is used to format arguments of TranslatableWithArgs. |
|
open fun withoutTranslationsUseDefaultLocale(): ObjectFormatterOption
Uses UsingDefaultTranslator as Translator where getDefaultLocale is used to format arguments of TranslatableWithArgs. |
|
abstract fun withTranslationSupplier(translationSupplier: TranslationSupplier): LocaleOrderDeciderOption
Uses the given translationSupplier as TranslationSupplier. |
|
abstract fun withTranslator(translator: Translator): ObjectFormatterOption
Uses the given translator as Translator skipping the options for TranslationSupplier and LocaleOrderDecider assuming the given translator is implemented differently -- use withDefaultTranslationSupplier or withTranslationSupplier in case the given translator requires a TranslationSupplier or a LocaleOrderDecider. |
fun create(): ReporterBuilder |