Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Weblate
commons
Commits
8c4f9340
Verified
Commit
8c4f9340
authored
Oct 12, 2021
by
Thomas Citharel
🏃🏻
Browse files
Add missing roles attributes to i18n menu
Signed-off-by:
Thomas Citharel
<
tcit@tcit.fr
>
parent
32d0bb77
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/components/partials/I18n.vue
View file @
8c4f9340
...
...
@@ -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"
...
...
src/components/I18n.vue
View file @
8c4f9340
...
...
@@ -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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment