From 8b4a835f80479463ea005e31efd6000c566353b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Mon, 20 Jan 2025 10:49:17 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9C=20Update=20documentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/README.md | 6 ++++-- frontend/src/components/SettingsGeneral.vue | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/README.md b/docs/README.md index 3c50291b1..d0bbd9986 100644 --- a/docs/README.md +++ b/docs/README.md @@ -69,16 +69,18 @@ erDiagram string email "FxA account email and email used for password auth" string name "Preferred display name" enum level "Subscription level [basic, plus, pro, admin]" - int timezone "User selected home timezone, UTC offset" string avatar_url "Public link to an avatar image" string short_link_hash "Hash for verifying user link" + string language "Lang code for subscribers preferred locale" + int timezone "User selected home timezone, UTC offset" + enum color_scheme "Frontend theme [system, dark, light]" + enum time_mode "Format for displaying times [h12, h24]" string minimum_valid_iat_time "Minimum valid time to accept for JWT tokens" date time_created "UTC timestamp of subscriber creation" date time_updated "UTC timestamp of last subscriber modification" string secondary_email "Secondary email address" date time_deleted "UTC timestamp of deletion (soft delete)" int ftue_level "Version of the FTUE the user has completed" - string language "Lang code for subscribers preferred locale" } SUBSCRIBERS ||--o{ CALENDARS : own CALENDARS { diff --git a/frontend/src/components/SettingsGeneral.vue b/frontend/src/components/SettingsGeneral.vue index 7359f23a7..d042a499a 100644 --- a/frontend/src/components/SettingsGeneral.vue +++ b/frontend/src/components/SettingsGeneral.vue @@ -12,9 +12,9 @@ const user = useUserStore(); user.init(call); // handle ui languages -watch(locale, (newValue) => { +watch(locale, (newValue: string) => { user.data.settings.language = newValue; - // window.location.reload(); + window.location.reload(); // This is needed to reload locale for dayjs instance }); // handle theme mode