load static method

Future<I18nGoogleWallet> load(
  1. Locale locale
)

Implementation

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

    return instance;
  });
}