doc / ch.tutteli.atrium.reporting.translating.impl / ResourceBundleInspiredLocaleOrderDecider

ResourceBundleInspiredLocaleOrderDecider

object ResourceBundleInspiredLocaleOrderDecider : LocaleOrderDecider (source)

Responsible to determine in which order Locales should be processed.

Inspired by Java's ResourceBundle.Control.getCandidateLocales() and ResourceBundle.Control.getFallbackLocale() but there are a few differences:

Further information can be found at LocaleOrderDecider.

Functions

determineOrder

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

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