translationBundleForLocale function

TranslationBundle translationBundleForLocale (
  1. Locale locale
)

Implementation

TranslationBundle translationBundleForLocale(Locale locale) {
  switch (locale.languageCode) {
    case 'fr':
      return const _Bundle_fr();
    case 'en':
      return const _Bundle_en();
    case 'de':
      return const _Bundle_de();
    case 'pt':
      return const _Bundle_pt();
    case 'es':
      return const _Bundle_es();
  }
  return const TranslationBundle(null);
}