doc / ch.tutteli.atrium.domain.builders.reporting / ReporterBuilder / withoutTranslations

withoutTranslations

open fun withoutTranslations(primaryLocale: Locale = java.util.Locale.getDefault()): ObjectFormatterOption
Deprecated: Use the overload which uses Atrium's [Locale] or `withoutTranslationsUseDefaultLocale`; will be removed with 1.0.0

Uses UsingDefaultTranslator as Translator where the given primaryLocale is used to format arguments of TranslatableWithArgs.

UsingDefaultTranslator does not require a TranslationSupplier nor a LocaleOrderDecider and thus the options to specify implementations of them are skipped.

Notice that UsingDefaultTranslator does not translate but uses what Translatable.getDefault returns. Also notice, that if you omit the primaryLocale then java.util.Locale.getDefault is used.

Parameters

primaryLocale - The Locale used to format arguments of TranslatableWithArgs.