keanu-weblite/src/components/SelectLanguageDialog.vue

55 lines
1.5 KiB
Vue
Raw Normal View History

<template>
2025-05-08 11:52:39 +02:00
<RoundedDialog
class="ma-0 pa-0"
v-bind="{ ...$props, ...$attrs }"
2025-05-06 10:53:34 +02:00
:width="$vuetify.display.smAndUp ? '940px' : '90%'"
>
<v-card class="dialog-card">
2021-12-19 16:04:19 +02:00
<v-card-title class="dialog-title d-block">
<h2>{{ $t("profile.set_language") }}</h2>
<div class="subtitle-1">{{ $t("profile.language_description") }}</div>
<div class="subtitle-1" v-if="$config.languageSupportEmail">
2021-12-19 16:04:19 +02:00
{{ $t("profile.dont_see_yours") }}
<a :href="'mailto:' + $config.languageSupportEmail">{{ $t("profile.tell_us") }}</a>
2021-12-19 16:04:19 +02:00
</div>
</v-card-title>
<v-card-text>
<v-select
v-model="$i18n.locale"
:items="languages"
2025-05-08 11:52:39 +02:00
:menu-props="{ auto: true }"
:label="$t('profile.select_language')"
v-on:change="$store.commit('setLanguage', $i18n.locale)"
hide-details
prepend-icon="language"
single-line
></v-select>
</v-card-text>
<v-card-actions>
<v-btn
id="btn-done"
depressed
block
2021-12-19 16:04:19 +02:00
class="btn-dark"
@click="$emit('close')"
2021-12-19 16:04:19 +02:00
>{{ $t("menu.done") }}</v-btn
>
</v-card-actions>
</v-card>
2025-05-08 11:52:39 +02:00
</RoundedDialog>
</template>
<script>
2021-12-19 16:04:19 +02:00
import LanguageMixin from "./languageMixin";
2025-05-08 11:52:39 +02:00
import RoundedDialog from "./RoundedDialog.vue";
2021-12-19 16:04:19 +02:00
export default {
2021-12-19 16:04:19 +02:00
mixins: [LanguageMixin],
2025-05-08 11:52:39 +02:00
components: { RoundedDialog }
};
</script>
<style lang="scss">
@import "@/assets/css/chat.scss";
</style>