This resolver will add options.locale if provided (this function receives
it inlined). In case nothing is set, then i18n.locale will be used.
Additionally, adds the default locale to the list if i18n.enableFallback is
set.
Every locale added to the list will then be split apart; if pt-BR is the
locale, then the list will be returned as ["pt-BR", "pt"].
The default locale resolver.
This resolver will add
options.locale
if provided (this function receives it inlined). In case nothing is set, theni18n.locale
will be used. Additionally, adds the default locale to the list ifi18n.enableFallback
is set.Every locale added to the list will then be split apart; if
pt-BR
is the locale, then the list will be returned as["pt-BR", "pt"]
.The default in case nothing is defined is
["en"]
.