AppLocaleUtilsExt<E extends BaseAppLocale<T> , T extends BaseTranslations> extension
- on
-
- BaseAppLocaleUtils<
E, T>
- BaseAppLocaleUtils<
Methods
-
parse(
String rawLocale) → E - Parses the raw locale to get the enum. Fallbacks to base locale.
-
parseAppLocale(
BaseAppLocale< BaseTranslations> locale) → E -
Gets the
E
type oflocale
. -
parseLocaleParts(
{required String languageCode, String? scriptCode, String? countryCode}) → E -
Finds the locale type
E
which fits the locale parts the best. Fallbacks to base locale.