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

LocaleOrderDecider

interface LocaleOrderDecider (source)

Responsible to decide in which order Locales should be processed.

It should follow Java's Locale conventions (e.g. locales are written with _ and not with -). To put it differently it should be more or less 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.

Inheritors

ResourceBundleInspiredLocaleOrderDecider

object ResourceBundleInspiredLocaleOrderDecider : LocaleOrderDecider

Responsible to determine in which order Locales should be processed.