load method
Implementation
@override
Future<Map<String, dynamic>?> load(String path, Locale locale) async {
if (!LocaleChain.isConfigured) {
return baseLoader.load(path, locale);
}
MessageLoader makeLoader(String assetPath) {
return (Locale l) async {
final result = await baseLoader.load(assetPath, l);
return result ?? {};
};
}
return LocaleChain.mergedMessages(
locale: locale,
loader: makeLoader(path),
);
}