keanu-weblite/src/components/SelectLanguageDialog.vue

55 lines
1.4 KiB
Vue
Raw Normal View History

<template>
<v-dialog
class="ma-0 pa-0"
v-bind="{ ...$props, ...$attrs }"
v-on="$listeners"
2021-12-19 16:04:19 +02:00
:width="$vuetify.breakpoint.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">
{{ $t("profile.dont_see_yours") }}
<a href="https://letsconvene.im/">{{ $t("profile.tell_us") }}</a>
</div>
</v-card-title>
<v-card-text>
<v-select
v-model="$i18n.locale"
:items="languages"
menu-props="auto"
: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"
color="black"
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>
</v-dialog>
</template>
<script>
2021-12-19 16:04:19 +02:00
import LanguageMixin from "./languageMixin";
export default {
2021-12-19 16:04:19 +02:00
mixins: [LanguageMixin],
};
</script>
<style lang="scss">
@import "@/assets/css/chat.scss";
</style>