load static method

SunnyIntl load(
  1. Locale locale
)

Implementation

static SunnyIntl load(Locale locale) {
  final String name =
      locale.countryCode == null ? locale.languageCode : locale.toString();
  final String localeName = Intl.canonicalizedLocale(name);

  initializeMessages(localeName);
  Intl.defaultLocale = localeName;
  return SunnyIntl();
}