feat(localization): implement localePath for project links across components
- Updated HytaleDemoGrid.vue, ProjectCard.vue, FeaturedProjectsSection.vue, about.vue, and project/[id].vue to utilize localePath for project links, enhancing localization support. - This change ensures that project URLs are correctly localized, improving user experience across different languages. This commit strengthens the site's multilingual capabilities by standardizing project link paths.
This commit is contained in:
+3
-2
@@ -2,6 +2,7 @@
|
||||
import { techStack } from '~/data/techstack'
|
||||
|
||||
const { t } = useI18n()
|
||||
const localePath = useLocalePath()
|
||||
|
||||
useSeoMeta({
|
||||
title: () => t('seo.about.title'),
|
||||
@@ -180,9 +181,9 @@ const approachCards = computed(() => [
|
||||
:title="t('about.cta.title')"
|
||||
:subtitle="t('about.cta.description')"
|
||||
:primary-text="t('about.cta.button')"
|
||||
primary-to="/contact"
|
||||
:primary-to="localePath('/contact')"
|
||||
:secondary-text="t('home.cta.viewProjects')"
|
||||
secondary-to="/projects"
|
||||
:secondary-to="localePath('/projects')"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user