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

withDefaultTranslator

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

Uses AtriumFactory.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.

Parameters

primaryLocale - The Locale for which the Translator will first search translations -- it will also be used to format arguments of TranslatableWithArgs. fallbackLocales - One Locale after another (in the given order) will be considered as primary Locale in case no translation was found the previous primary Locale.