-
-
Save hitherejoe/a3f96470024c19ea4f129fccb626bd6f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AppLocalizationDelegate extends LocalizationsDelegate<AppLocalizations> { | |
const AppLocalizationDelegate(); | |
@override | |
bool isSupported(Locale locale) => | |
['en'].contains(locale.languageCode); | |
@override | |
Future<AppLocalizations> load(Locale locale) => | |
AppLocalizations.load(locale); | |
@override | |
bool shouldReload(AppLocalizationDelegate old) => false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment