getMessageLookup function

MessageLookup? getMessageLookup(
  1. String localeName
)

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;
}