atrium-impl-robstoll / ch.tutteli.atrium.reporting.translating / Translator / <init>

<init>

Translator(translationSupplier: ITranslationSupplier, primaryLocale: Locale, fallbackLocales: Array<out Locale>)

Parameters

translationSupplier - The ITranslationSupplier as such. primaryLocale - The Locale to which the translator translates per default as well as the Locale which will be used in java.lang.String.format, which in turn is used to substitute the placeholders in the resulting translation of ITranslatableWithArgs.translatable with the ITranslatableWithArgs.arguments. fallbackLocales - Used in case a translation for a given ITranslatable is not defined for primaryLocale or one of its secondary alternatives -- the fallback Locales are used in the given order.

Constructor