load method
- Locale locale
Implementation
static Future<I18n> load(Locale locale) async {
final name = locale.countryCode.isEmpty ? locale.languageCode : locale.toString();
final localeName = Intl.canonicalizedLocale(name);
Intl.defaultLocale = localeName;
await initializeMessages(localeName);
return I18n(localeName);
}