LocalisonByLanguageDelegate constructor

LocalisonByLanguageDelegate(
  1. Iterable<Locale> locales,
  2. {bool cachable}
)

Instantiates a new LocalisonByLanguageDelegate with support for the specified locales.

Implementation

LocalisonByLanguageDelegate(Iterable<Locale> locales, {bool cachable})
    : languages = locales.map((locale) => locale.languageCode.toLowerCase()),
      super(locales, cachable: cachable);