Added new languages, fixed accessibility for language selector

This commit is contained in:
RemixDev
2021-10-05 11:36:58 +02:00
parent c29218b7ad
commit 9c80d4b28c
9 changed files with 508 additions and 183 deletions

View File

@@ -91,10 +91,12 @@
v-for="locale in locales"
:key="locale"
:class="{ 'locale-flag--current': currentLocale === locale }"
:title="locale"
:title="`${flags[locale].eng} (${flags[locale].name})`"
tabindex="0"
class="inline-flex items-center locale-flag"
@click="changeLocale(locale)"
v-html="flags[locale]"
@keyup.enter="changeLocale(locale)"
v-html="flags[locale].flag"
/>
</ul>
</div>