Xulo
Xulo
NNuxt
Created by Xulo on 11/16/2024 in #❓・help
Sanity Navigation Error: TypeError: can't access property
No description
12 replies
NNuxt
Created by Xulo on 8/5/2024 in #❓・help
i18n: Configuring Dynamic Translated Slugs
Hi everyone, I'm working on getting dynamic translated slugs for dynamic pages in my Nuxt project. Everything is functioning well, but I need some help with configuring custom dynamic slugs based on the language. Here's what I have: Example pages: http://localhost:3000/project/fashion-and-design http://localhost:3000/es/proyecto/moda-y-diseno http://localhost:3000/nl/project/mode-en-design The problem: When I switch languages on any of these pages (e.g., from the English page), it redirects to: http://localhost:3000/project/fashion-and-design http://localhost:3000/es/proyecto/fashion-and-design http://localhost:3000/nl/project/fashion-and-design What I want: I want the slugs to be dynamically translated based on the selected language. For example, switching from English to Spanish should redirect to: http://localhost:3000/project/fashion-and-design http://localhost:3000/es/proyecto/moda-y-diseno http://localhost:3000/nl/project/mode-en-design Thanks in advance! :) Here's my current Nuxt config: i18n: { baseUrl: process.env.NUXT_PUBLIC_SITE_URL || 'http://localhost:3000', vueI18n: './i18n.config.ts', locales: [ { code: 'en', name: 'English', file: 'en.json' }, { code: 'es', name: 'Español', file: 'es.json' }, { code: 'nl', name: 'Nederlands', file: 'nl.json' } ], customRoutes: 'config', // disable custom route with page components pages: { 'about': { en: '/about-me', es: '/sobre-mi', nl: '/over-mij' }, 'project/[name]': { es: '/proyecto/[name]', nl: '/project/[name]' } }, defaultLocale: 'en', }
3 replies
NNuxt
Created by Xulo on 6/25/2024 in #❓・help
Nuxthub with Cloudflare Pages
No description
3 replies
NNuxt
Created by Xulo on 5/22/2023 in #❓・help
SSR Issue: Empty Data on Page Reload with Nuxt 3 and Strapi useAsyncData
No description
5 replies