Skip to content

Commit 18eddda

Browse files
add currentLang in app bar
1 parent 6e5ac37 commit 18eddda

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/layouts/default/AppBar.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@
3434
<v-icon v-else color="error"> mdi-alert-circle </v-icon>
3535
<v-menu>
3636
<template v-slot:activator="{ props }">
37-
<v-btn class="ml-1" v-bind="props" icon>
38-
<v-icon>mdi-translate</v-icon>
37+
<v-btn class="ml-1" v-bind="props" >
38+
<v-icon start>mdi-translate</v-icon>
39+
{{ currentLanguage }}
3940
</v-btn>
4041
</template>
4142
<v-list :value="currentLanguage">
@@ -45,7 +46,7 @@
4546
@click="changei18n(lang)"
4647
:disabled="lang === currentLanguage"
4748
>
48-
<v-list-item-title>{{ lang }}</v-list-item-title>
49+
<v-list-item-title class="text-center">{{ lang }}</v-list-item-title>
4950
</v-list-item>
5051
</v-list>
5152
</v-menu>

0 commit comments

Comments
 (0)