Merge pull request #5491 from Ocelot-Social-Community/5490-make-header-menu-configuration-translatable

feat: 🍰 Make Configurable Header Menu Translatable
This commit is contained in:
Wolfgang Huß 2022-10-18 12:48:08 +02:00 committed by GitHub
commit 589938a829
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View File

@ -1,13 +1,12 @@
export default {
MENU: [
// {
// name: 'Beiträge',
// path: '/#',
// nameIdent: 'ocelotRebranding.newsFeed',
// path: '/',
// },
// {
// name: 'Über Yunite',
// path: '/#',
// url: 'https://yunite.org',
// nameIdent: 'ocelotRebranding.about',
// url: 'https://ocelot.org',
// },
],
}

View File

@ -19,12 +19,12 @@
>
<a v-if="item.url" :href="item.url" target="_blank">
<ds-text size="large" bold>
{{ item.name }}
{{ $t(item.nameIdent) }}
</ds-text>
</a>
<nuxt-link v-else :to="item.path">
<ds-text size="large" bold>
{{ item.name }}
{{ $t(item.nameIdent) }}
</ds-text>
</nuxt-link>
</ds-flex-item>