load static method

Future<QueryFieldSemanticsLocalizations> load(
  1. Locale locale
)

Implementation

static Future<QueryFieldSemanticsLocalizations> load(Locale locale) {
  final String name = locale.countryCode?.isEmpty ?? false
      ? locale.languageCode
      : locale.toString();
  final String localeName = Intl.canonicalizedLocale(name);
  return initializeMessages(localeName).then((_) {
    return QueryFieldSemanticsLocalizations(localeName);
  });
}