1👍
I’m assuming you’re using Nuxt3. First try redefining your pages like:
'rental/[id]': {
nl: '/verhuur/[id]',
en: '/rental/[id]',
de: '/mietbestand/[id]',
},
Also, don’t forget to add this to your setup:
const localePath = useLocalePath()
If that doesn’t work try doing localePath({ name: 'rental-id', params: { id: '123' } })
- [Vuejs]-How to check if input field is large enough to display full content?
- [Vuejs]-How to use List.JS with Vue + Axios?
Source:stackexchange.com