interface LocaleOrderDecider
Responsible to decide in which order Locales should be processed.
It has to be compatible with Java's ResourceBundle.Control.getCandidateLocales
except for:
no
does not need to be considered, is not supported by
Translator (see CoreFactory.newTranslator for more information).zh
with script Hant
or Hans
without providing a country does not need to
be treated specially because Translator does not support it. However, it still has to set script to Hant
or Hans
in case script is not defined by the user but country was.java.util.Locale.ROOT
is considered to be an illegal Locale.
abstract fun determineOrder(primaryLocale: Locale, fallbackLocales: List<Locale>): Sequence<Locale>
Defines the Sequence of Locales which should be used in Translator.translate. |