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

Mixins

Strings

Functions

parseLocale(String localeTag) → Locale
Parses a locale tag into a Locale.
resolveSupportedLocale(Locale requested, Iterable<Locale> supported) → Locale?
Resolves requested against supported without discarding locale subtags.

Typedefs

TranslatorCallback = void Function(Locale? locale)
Legacy callback invoked with the locale selected by FlutterLocalization.

Exceptions / Errors

EnsureInitializedException