elk/pages/settings/language/index.vue

30 lines
900 B
Vue
Raw Normal View History

2023-01-04 14:57:12 +01:00
<script setup lang="ts">
const { t } = useI18n()
useHeadFixed({
title: () => `${t('settings.language.label')} | ${t('nav.settings')}`,
})
2023-01-16 00:14:55 +01:00
const userSettings = useUserSettings()
2023-01-04 14:57:12 +01:00
</script>
2022-12-27 00:04:24 +01:00
<template>
<MainContent back-on-small-screen>
2022-12-27 00:04:24 +01:00
<template #title>
<div text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
<span>{{ $t('settings.language.label') }}</span>
</div>
</template>
2023-01-16 00:36:34 +01:00
<div p6 flex="~ col gap6">
<label space-y-2>
<p font-medium>{{ $t('settings.language.display_language') }}</p>
2023-01-16 00:14:55 +01:00
<SettingsLanguage v-model:language="userSettings.language" select-settings />
</label>
<label space-y-2>
<p font-medium>{{ $t('settings.language.writing_language') }}</p>
<SettingsLanguage v-model:language="userSettings.writingLanguage" select-settings />
</label>
2022-12-27 00:04:24 +01:00
</div>
</MainContent>
</template>