doc / ch.tutteli.atrium.reporting / ReporterBuilder / TranslatorOptions

TranslatorOptions

class TranslatorOptions
Deprecated: Use the builder from package domain.builders.reporting; will be removed with 1.0.0

Constructors

<init>

TranslatorOptions(translationSupplier: TranslationSupplier, localeOrderDecider: LocaleOrderDecider)

Functions

withDefaultTranslator

fun withDefaultTranslator(primaryLocale: Locale, vararg fallbackLocales: Locale): ReporterBuilder.ObjectFormatterOptions

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.

withTranslator

fun withTranslator(factory: (TranslationSupplier, LocaleOrderDecider) -> Translator): ReporterBuilder.ObjectFormatterOptions

Uses the given factory to build a Translator.