From 155dbf0e905d66fb624b393a4e7e8536149c1645 Mon Sep 17 00:00:00 2001 From: Michel Edighoffer Date: Mon, 16 Jan 2023 00:14:55 +0100 Subject: [PATCH] feat: add writing language --- components/settings/SettingsLanguage.vue | 9 ++++++--- composables/masto/statusDrafts.ts | 14 ++++++++++---- composables/settings/definition.ts | 2 ++ pages/settings/language/index.vue | 8 +++++++- 4 files changed, 25 insertions(+), 8 deletions(-) diff --git a/components/settings/SettingsLanguage.vue b/components/settings/SettingsLanguage.vue index a1c87c1f..846598f8 100644 --- a/components/settings/SettingsLanguage.vue +++ b/components/settings/SettingsLanguage.vue @@ -2,14 +2,17 @@ import type { ComputedRef } from 'vue' import type { LocaleObject } from '#i18n' -const userSettings = useUserSettings() +const props = defineProps<{ + language?: string +}>() +const model = useVModel(props, 'language') const { locales } = useI18n() as { locales: ComputedRef }