abstract fun withDefaultTranslator(primaryLocale: Locale, vararg fallbackLocales: Locale): ObjectFormatterOption
(source)
Uses CoreFactory.newTranslator as Translator where the specified translationSupplier is used to retrieve translations, the specified localeOrderDecider to determine candidate Locales and primaryLocale is used as primary Locale and the optional fallbackLocales as fallback Locales.
primaryLocale
- The Locale for which the Translator will first search translations --
it will also be used to format arguments of TranslatableWithArgs.
fallbackLocales
- One Locale after another (in the given order) will be considered as primary Locale
in case no translation was found the previous primary Locale.