getMessageLookup function
Implementation
MessageLookup? getMessageLookup(String localeName) {
var availableLocale = Intl.verifiedLocale(
localeName, (locale) => _deferredLibraries[locale] != null,
onFailure: (_) => null);
if (availableLocale == null) {
return null;
}
final lookup = new CompositeMessageLookup();
lookup.addLocale(availableLocale, _findGeneratedMessagesFor);
return lookup;
}