load method
Return the translation Map
Implementation
Future<Map> load() async {
_decodedMap = Map();
await this._defineLocale();
final fileName = composeFileName();
_decodedMap.addAll(await _loadTranslation(fileName, false));
if (fallbackFile != null && fileName != fallbackFile) {
final Map fallbackMap = await _loadTranslation(fallbackFile!, true);
_decodedMap = _deepMergeMaps(fallbackMap, _decodedMap);
MessagePrinter.debug('Fallback maps have been merged');
}
return _decodedMap;
}