Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Last active August 28, 2018 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hitherejoe/a3f96470024c19ea4f129fccb626bd6f to your computer and use it in GitHub Desktop.
Save hitherejoe/a3f96470024c19ea4f129fccb626bd6f to your computer and use it in GitHub Desktop.
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