Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: fallback to supported locale if easy_localization doesn't support device locale
appflowy62bafce0b238
diff --git a/frontend/app_flowy/lib/workspace/application/appearance.dart b/frontend/app_flowy/lib/workspace/application/appearance.dartindex 77f3ec567a..266ab1a5c5 100644--- a/frontend/app_flowy/lib/workspace/application/appearance.dart+++ b/frontend/app_flowy/lib/workspace/application/appearance.dart@@ -47,10 +47,10 @@ class AppearanceSettingModel extends ChangeNotifier with EquatableMixin {void setLocale(BuildContext context, Locale newLocale) {if (_locale != newLocale) {- if (context.supportedLocales.contains(newLocale)) {+ if (!context.supportedLocales.contains(newLocale)) {Log.error("Unsupported locale: $newLocale");newLocale = const Locale('en');- Log.debug("Fall back to locale: $newLocale");+ Log.debug("Fallback to locale: $newLocale");}context.setLocale(newLocale);