atrium-core-impl-robstoll-lib / ch.tutteli.atrium.reporting.translating / TranslationSupplierBasedTranslator

TranslationSupplierBasedTranslator

class TranslationSupplierBasedTranslator : ArgumentsSupportingTranslator

Represents a Translator which uses a TranslationSupplier to retrieve translations and CoroutineBasedLocaleOrderDecider to determine in which order it should try to find translations for a given Translatable.

Constructors

<init>

TranslationSupplierBasedTranslator(translationSupplier: TranslationSupplier, localeOrderDecider: LocaleOrderDecider, primaryLocale: Locale, fallbackLocales: Array<out Locale>)

Represents a Translator which uses a TranslationSupplier to retrieve translations and LocaleOrderDecider to determine in which order it should try to find translations for a given Translatable.

Functions

translateWithoutArgs

fun translateWithoutArgs(translatable: Translatable): String