lookupFormBuilderLocalizationsImpl function
Implementation
FormBuilderLocalizationsImpl lookupFormBuilderLocalizationsImpl(Locale locale) {
// Lookup logic when language+script codes are specified.
switch (locale.languageCode) {
case 'zh': {
switch (locale.scriptCode) {
case 'Hant': return FormBuilderLocalizationsImplZhHant();
}
break;
}
}
// Lookup logic when only language code is specified.
switch (locale.languageCode) {
case 'ar': return FormBuilderLocalizationsImplAr();
case 'bg': return FormBuilderLocalizationsImplBg();
case 'bn': return FormBuilderLocalizationsImplBn();
case 'bs': return FormBuilderLocalizationsImplBs();
case 'ca': return FormBuilderLocalizationsImplCa();
case 'cs': return FormBuilderLocalizationsImplCs();
case 'da': return FormBuilderLocalizationsImplDa();
case 'de': return FormBuilderLocalizationsImplDe();
case 'el': return FormBuilderLocalizationsImplEl();
case 'en': return FormBuilderLocalizationsImplEn();
case 'es': return FormBuilderLocalizationsImplEs();
case 'et': return FormBuilderLocalizationsImplEt();
case 'fa': return FormBuilderLocalizationsImplFa();
case 'fi': return FormBuilderLocalizationsImplFi();
case 'fr': return FormBuilderLocalizationsImplFr();
case 'he': return FormBuilderLocalizationsImplHe();
case 'hi': return FormBuilderLocalizationsImplHi();
case 'hr': return FormBuilderLocalizationsImplHr();
case 'hu': return FormBuilderLocalizationsImplHu();
case 'id': return FormBuilderLocalizationsImplId();
case 'it': return FormBuilderLocalizationsImplIt();
case 'ja': return FormBuilderLocalizationsImplJa();
case 'km': return FormBuilderLocalizationsImplKm();
case 'ko': return FormBuilderLocalizationsImplKo();
case 'ku': return FormBuilderLocalizationsImplKu();
case 'lo': return FormBuilderLocalizationsImplLo();
case 'lv': return FormBuilderLocalizationsImplLv();
case 'mn': return FormBuilderLocalizationsImplMn();
case 'ms': return FormBuilderLocalizationsImplMs();
case 'ne': return FormBuilderLocalizationsImplNe();
case 'nl': return FormBuilderLocalizationsImplNl();
case 'no': return FormBuilderLocalizationsImplNo();
case 'pl': return FormBuilderLocalizationsImplPl();
case 'pt': return FormBuilderLocalizationsImplPt();
case 'ro': return FormBuilderLocalizationsImplRo();
case 'ru': return FormBuilderLocalizationsImplRu();
case 'sk': return FormBuilderLocalizationsImplSk();
case 'sl': return FormBuilderLocalizationsImplSl();
case 'sq': return FormBuilderLocalizationsImplSq();
case 'sv': return FormBuilderLocalizationsImplSv();
case 'sw': return FormBuilderLocalizationsImplSw();
case 'ta': return FormBuilderLocalizationsImplTa();
case 'th': return FormBuilderLocalizationsImplTh();
case 'tr': return FormBuilderLocalizationsImplTr();
case 'uk': return FormBuilderLocalizationsImplUk();
case 'vi': return FormBuilderLocalizationsImplVi();
case 'zh': return FormBuilderLocalizationsImplZh();
}
throw FlutterError(
'FormBuilderLocalizationsImpl.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.'
);
}