Make configurable header menu translatable

This commit is contained in:
Wolfgang Huß 2022-10-15 16:11:28 +02:00
parent 9ccafbd48b
commit 95cb82da34
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>