AppLocaleUtilsExt<E extends BaseAppLocale<E, T>, T extends BaseTranslations<E, T>> extension

on

Properties

supportedLocalesRaw List<String>
Gets supported locales in string format.
no setter

Methods

buildWithOverrides({required E locale, required FileType fileType, required String content, PluralResolver? cardinalResolver, PluralResolver? ordinalResolver}) → T
Creates a translation instance with overrides stored in content.
buildWithOverridesFromMap({required E locale, required bool isFlatMap, required Map map, PluralResolver? cardinalResolver, PluralResolver? ordinalResolver}) → T
Creates a translation instance using the given map.
parse(String rawLocale) → E
Parses the raw locale to get the enum. Fallbacks to base locale.
parseAppLocale(BaseAppLocale<BaseAppLocale, BaseTranslations> locale) → E
Gets the E type of locale.
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.