i18nObjInLocale function

Map<String, dynamic>? i18nObjInLocale(
  1. LocaleType type
)

Implementation

Map<String, dynamic>? i18nObjInLocale(LocaleType type) {
  switch (type) {
    case LocaleType.fa:
      return _i18nModel['fa'];
    case LocaleType.zh:
      return _i18nModel['zh'];
    case LocaleType.nl:
      return _i18nModel['nl'];
    case LocaleType.ru:
      return _i18nModel['ru'];
    case LocaleType.it:
      return _i18nModel['it'];
    case LocaleType.fr:
      return _i18nModel['fr'];
    case LocaleType.es:
      return _i18nModel['es'];
    case LocaleType.pl:
      return _i18nModel['pl'];
    case LocaleType.pt:
      return _i18nModel['pt'];
    case LocaleType.ko:
      return _i18nModel['ko'];
    case LocaleType.ar:
      return _i18nModel['ar'];
    case LocaleType.tr:
      return _i18nModel['tr'];
    case LocaleType.jp:
      return _i18nModel['jp'];
    case LocaleType.de:
      return _i18nModel['de'];
    case LocaleType.da:
      return _i18nModel['da'];
    case LocaleType.mn:
      return _i18nModel['mn'];
    case LocaleType.bn:
      return _i18nModel['bn'];
    case LocaleType.vi:
      return _i18nModel['vi'];
    case LocaleType.hy:
      return _i18nModel['hy'];
    case LocaleType.id:
      return _i18nModel['id'];
    case LocaleType.bg:
      return _i18nModel['bg'];
    case LocaleType.eu:
      return _i18nModel['eu'];
    default:
      return _i18nModel['en'];
  }
}