elk/pages/settings/language/index.vue

33 lines
913 B
Vue
Raw Normal View History

2023-01-04 14:57:12 +01:00
<script setup lang="ts">
2023-01-11 15:07:08 +01:00
const { t, localeProperties } = useI18n()
2023-01-04 14:57:12 +01:00
useHeadFixed({
title: () => `${t('settings.language.label')} | ${t('nav.settings')}`,
})
</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>
<div p6>
<label space-y-2>
<p font-medium>{{ $t('settings.language.display_language') }}</p>
<SettingsLanguage select-settings />
</label>
2023-01-11 15:07:08 +01:00
<SettingsToggleItem
v-if="localeProperties.adoptInclusiveWriting"
:checked="getWellnessSetting('useInclusiveWriting')"
m-t
@click="toggleWellnessSetting('useInclusiveWriting')"
>
{{ $t('settings.language.inclusive') }}
</SettingsToggleItem>
2022-12-27 00:04:24 +01:00
</div>
</MainContent>
</template>