Verified Commit 8c4f9340 authored by Thomas Citharel's avatar Thomas Citharel 🏃🏻
Browse files

Add missing roles attributes to i18n menu


Signed-off-by: Thomas Citharel's avatarThomas Citharel <tcit@tcit.fr>
parent 32d0bb77
......@@ -17,19 +17,22 @@
<li
v-for="lang in locales.visible"
:key="lang"
role="presentation"
>
<b-link
:to="`/${lang}/${($route.path.split('/')[2] || '')}`"
class="dropdown-item"
role="menuitem"
@click.native="changeLanguage(lang)"
v-text="locales[lang]"
/>
</li>
<b-dd-divider v-if="$te('meta.i18n')" />
<li v-if="$te('meta.i18n')">
<li v-if="$te('meta.i18n')" role="presentation">
<a
:href="$t('meta.i18n')"
class="dropdown-item"
role="menuitem"
>
<svg-icon
name="plus"
......
......@@ -16,19 +16,22 @@
<li
v-for="lang in translations.available"
:key="lang"
role="presentation"
>
<b-link
:to="`/${lang}/${($route.path.split('/')[2] || '')}`"
class="dropdown-item"
role="menuitem"
@click.native="changeLanguage(lang)"
v-text="translations[lang]"
/>
</li>
<b-dd-divider v-if="$t('config.translations.translate') !== ''" />
<li v-if="$t('config.translations.translate') !== ''">
<li v-if="$t('config.translations.translate') !== ''" role="presentation">
<a
:href="$t('config.translations.translate')"
class="dropdown-item"
role="menuitem"
>
<i class="fas fa-plus"></i>
<span v-html="$t('nav.translate')"></span>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment