I'm trying to add Spanish to my flutter project with easy_localization i added JSON files of US and ES and added the path to it in runApp function as I try to generate keys with flutter
pub run easy_localization:generate
runApp(EasyLocalization(
supportedLocales: [Locale('en', 'US'), Locale('es', 'ES')],
path: 'assets/translations/',
fallbackLocale: Locale('en', 'US'),
child: MyApp()));
simply just put the path of the folder where localization files are, in my case.
flutter pub run easy_localization:generate --source-dir ./assets/translations