I currently have this route set up in my i18n.config.js
:
{
pages: {
'rental/_id': {
nl: '/verhuur/:id',
en: '/rental/:id',
de: '/mietbestand/:id',
},
}
}
When attempting to link to this page in my Nuxt project using localePath()
, like so:
<nuxt-link :to="localePath('rental/123')">
{{ $t(item.title) }}
</nuxt-link>
I encounter the following warning:
Route with name 'rental/123___nl' does not exist.
Is there a way for me to successfully link to the rental/_id
page?