interface ReporterBuilder
(source)
Provides options to create a Translator or TranslationSupplier.
abstract fun withDefaultTranslationSupplier(): LocaleOrderDeciderOption
Uses CoreFactory.newPropertiesBasedTranslationSupplier as TranslationSupplier. |
|
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. |
|
abstract fun withoutTranslations(primaryLocale: Locale = Locale.getDefault()): ObjectFormatterOption
Uses UsingDefaultTranslator as Translator where the given primaryLocale is used to format arguments of TranslatableWithArgs. |