isSupported method
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) {
// We only support language codes for now
if (supportedLocales.containsKey(Locale(locale.languageCode))) {
return true;
}
debugPrint(
'The locale $locale is not supported, '
'falling back to english translations',
);
return true;
}