Browse Source

save language

appflowy 3 years ago
parent
commit
814f9f4c19
1 changed files with 5 additions and 1 deletions
  1. 5 1
      frontend/app_flowy/lib/workspace/application/appearance.dart

+ 5 - 1
frontend/app_flowy/lib/workspace/application/appearance.dart

@@ -32,6 +32,10 @@ class AppearanceSettingModel extends ChangeNotifier with EquatableMixin {
   }
 
   void setLanguage(String language) {
-    // TODO: save the language settings
+    if (setting.language != language) {
+      setting.language = language;
+      notifyListeners();
+      save();
+    }
   }
 }