- Add to pubspec.yaml
- flutter_localization: sdk:flutter
- intl_translation: ^0.17.10
- flutter_cupertino_localizations: ^1.0.1
- create a
lib/locales
folder with alib/locales/locale.dart
file and addDemoLocalizationDelegate
class andAppLocalizationDelgate
class from here
Note: make sure you have imported these libraries in locale.dart