class LocaleOrderDecider : ILocaleOrderDecider
Responsible to determine in which order Locales should be processed.
Adopted from ResourceBundle.Control.getCandidateLocales and ResourceBundle.Control.getFallbackLocale but allows to define more than one fallback Locale and does not use Locale.getDefault implicitly (one can define it explicitly as fallback Locale though).
LocaleOrderDecider()
Responsible to determine in which order Locales should be processed. |
fun determineOrder(primaryLocale: Locale, fallbackLocales: Array<out Locale>): Sequence<Locale>
Defines the Sequence of Locales which should be used in ITranslator.translate. |