Skip to content

[Feature] Change the navigation bar generationΒ #414

@CrSjimo

Description

@CrSjimo

In source code /src/components/Header/src/Navigation.vue:

<span class="relative z-50" v-if="locale">
  {{ route.i18n[locale] }}
</span>
<span class="relative z-50" v-else>{{ route.name }}</span>

In the v-if="locale" branch, there should be an extra if-branch to check whether the name of a custom menu is set but the i18n of it is not set. In this case, the name should be set to the content of <span> as a fallback, otherwise the content would be blank.

Also, if the name is the same in all languages, it could be OK to just set one name instead of repeating it in i18n.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageIssues waiting to be inspected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions