Commit a516c69a authored by JosephK's avatar JosephK
Browse files

Merge branch 'add-missing-role-attributes-to-i18n-menu' into 'master'

Add missing roles attributes to i18n menu

See merge request framasoft/vue-fs/commons!15
parents d9bc76dd e9ab85d1
......@@ -17,19 +17,25 @@
<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,25 @@
<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>
......@@ -79,4 +85,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
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