Add tooltip to locale switch menu

This commit is contained in:
Wolfgang Huß 2023-03-23 08:21:46 +01:00
parent 28505a5b18
commit 26b90fce47
3 changed files with 15 additions and 1 deletions

View File

@ -2,7 +2,15 @@
<client-only>
<dropdown ref="menu" :placement="placement" :offset="offset">
<template #default="{ toggleMenu }">
<a class="locale-menu" href="#" @click.prevent="toggleMenu()">
<a
class="locale-menu"
href="#"
v-tooltip="{
content: $t('localeSwitch.tooltip'),
placement: 'bottom-start',
}"
@click.prevent="toggleMenu()"
>
<!-- <base-icon name="globe" /> -->
<span class="label">{{ current.code.toUpperCase() }}</span>
<base-icon class="dropdown-arrow" name="angle-down" />

View File

@ -530,6 +530,9 @@
"not-available": "Du hast keinen Einladungscode zur Verfügung!",
"your-code": "Sende diesen Link per E-Mail oder in sozialen Medien, um deine Freunde einzuladen:"
},
"localeSwitch": {
"tooltip": "Sprache wählen"
},
"login": {
"email": "Deine E-Mail",
"failure": "Fehlerhafte E-Mail-Adresse oder Passwort.",

View File

@ -530,6 +530,9 @@
"not-available": "You have no valid invite code available!",
"your-code": "Send this link per e-mail or in social media to invite your friends:"
},
"localeSwitch": {
"tooltip": "Choose language"
},
"login": {
"email": "Your E-mail",
"failure": "Incorrect email address or password.",