AssetLocalizationLoader
A LocalizationLoader which can load translations from file assets bundles. Remember to add the language file assets to the pubspec.yaml file.
- Implemented types
Constructors
AssetLocalizationLoader
- String basePath = 'assets/lang',
Create a asset location loader. Loads from assets/lang per default.
Properties
basePath
final
Methods
load
Load translations for locale.
The map may be nested, in which case it is flattened into dot-separated keys when merged - see AssetLocalizations.flatten. Returning a flat Map<String, String> remains valid.