lookupWiredashLocalizations function

WiredashLocalizations lookupWiredashLocalizations(
  1. Locale locale
)

Implementation

WiredashLocalizations lookupWiredashLocalizations(Locale locale) {
  // Lookup logic when only language code is specified.
  switch (locale.languageCode) {
    case 'ar':
      return WiredashLocalizationsAr();
    case 'cs':
      return WiredashLocalizationsCs();
    case 'da':
      return WiredashLocalizationsDa();
    case 'de':
      return WiredashLocalizationsDe();
    case 'en':
      return WiredashLocalizationsEn();
    case 'es':
      return WiredashLocalizationsEs();
    case 'fa':
      return WiredashLocalizationsFa();
    case 'fr':
      return WiredashLocalizationsFr();
    case 'hu':
      return WiredashLocalizationsHu();
    case 'it':
      return WiredashLocalizationsIt();
    case 'no':
      return WiredashLocalizationsNo();
    case 'pl':
      return WiredashLocalizationsPl();
    case 'pt':
      return WiredashLocalizationsPt();
    case 'tr':
      return WiredashLocalizationsTr();
  }

  throw FlutterError(
      'WiredashLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
      'an issue with the localizations generation tool. Please file an issue '
      'on GitHub with a reproducible sample app and the gen-l10n configuration '
      'that was used.');
}