]> Untitled Git - lemmy.git/blobdiff - crates/api_common/src/person.rs
Tag posts and comments with language (fixes #440) (#2269)
[lemmy.git] / crates / api_common / src / person.rs
index 865597521186c86e9092afca39a9e4958e29df27..79e3041d8e8c8ab8ca0147b2bb52b6ae0eab442e 100644 (file)
@@ -14,7 +14,14 @@ pub struct Login {
   pub password: Sensitive<String>,
 }
 use lemmy_db_schema::{
-  newtypes::{CommentReplyId, CommunityId, PersonId, PersonMentionId, PrivateMessageId},
+  newtypes::{
+    CommentReplyId,
+    CommunityId,
+    LanguageId,
+    PersonId,
+    PersonMentionId,
+    PrivateMessageId,
+  },
   CommentSortType,
   SortType,
 };
@@ -56,7 +63,7 @@ pub struct SaveUserSettings {
   pub theme: Option<String>,
   pub default_sort_type: Option<i16>,
   pub default_listing_type: Option<i16>,
-  pub lang: Option<String>,
+  pub interface_language: Option<String>,
   pub avatar: Option<String>,
   pub banner: Option<String>,
   pub display_name: Option<String>,
@@ -69,6 +76,7 @@ pub struct SaveUserSettings {
   pub show_bot_accounts: Option<bool>,
   pub show_read_posts: Option<bool>,
   pub show_new_post_notifs: Option<bool>,
+  pub discussion_languages: Option<Vec<LanguageId>>,
   pub auth: Sensitive<String>,
 }