interface LocaleOrderDecider
Responsible to decide in which order Locales should be processed.
It has to be compatible with ResourceBundle.Control.getCandidateLocales except for:
no
does not need to be considered, is not supported by
Translator (see IAtriumFactory.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.
abstract fun determineOrder(primaryLocale: Locale, fallbackLocales: Array<out Locale>): <ERROR CLASS><Locale>
Defines the Sequence of Locales which should be used in Translator.translate. |