doc / ch.tutteli.atrium.reporting.translating / LocaleOrderDecider

LocaleOrderDecider

interface LocaleOrderDecider (source)

Responsible to decide in which order Locales should be processed.

It has to be compatible with Java's ResourceBundle.Control.getCandidateLocales except for:

Functions

determineOrder

abstract fun determineOrder(primaryLocale: Locale, fallbackLocales: List<Locale>): Sequence<Locale>

Defines the Sequence of Locales which should be used in Translator.translate.