flutter_localization library
Classes
- FlutterLocalization
- Coordinates the selected locale and the translations Flutter loads.
- JsonLocale
- A locale whose translations are loaded from a JSON asset.
- MapLocale
Enums
Mixins
Extensions
Functions
-
parseLocale(
String localeTag) → Locale - Parses a locale tag into a Locale.
-
resolveSupportedLocale(
Locale requested, Iterable< Locale> supported) → Locale? -
Resolves
requestedagainstsupportedwithout discarding locale subtags.
Typedefs
- TranslatorCallback = void Function(Locale? locale)
- Legacy callback invoked with the locale selected by FlutterLocalization.