isSupported method

  1. @override
bool isSupported(
  1. Locale locale
)
override

Whether resources for the given locale can be loaded by this delegate.

Return true if the instance of T loaded by this delegate's load method supports the given locale's language.

Implementation

@override
bool isSupported(Locale locale) => <String>[
      'ar',
      'bg',
      'bs',
      'cs',
      'de',
      'el',
      'en',
      'es',
      'fi',
      'fr',
      'hr',
      'hu',
      'id',
      'it',
      'ja',
      'ka',
      'ko',
      'lt',
      'lv',
      'nb',
      'nl',
      'pl',
      'pt',
      'ro',
      'ru',
      'sk',
      'sl',
      'sr',
      'sv',
      'th',
      'tl',
      'tr',
      'uk',
      'vi',
      'zh',
    ].contains(locale.languageCode);