frontend/app_flowy/assets/translations/
flutter pub run easy_localization:generate -S assets/translations/
flutter pub run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translations
json
files named in the format <lang_code>-<country_code>.json
or just <lang_code>.json
. eg:en.json
, en-UK.json
frontend/app_flowy/assets/translations/
. Refer en.json
for format and keys.flutter pub run easy_localization:generate -S assets/translations/
flutter pub run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translations
frontend/app_flowy/lib/startup/tasks/app_widget.dart
file.InitAppWidgetTask
class, add the locale of the language you just created (eg: Locale('en', 'IN')
, Locale('en')
) to the supportedLocales
List :AppFlowy/frontend/app_flowy/packages/flowy_infra/lib/language.dart