From bd7e02f6ce019f2d1dd3062e7efe8c152fa5938a Mon Sep 17 00:00:00 2001 From: kayjaydee Date: Wed, 8 Apr 2026 18:53:49 +0200 Subject: [PATCH] fix: correct i18n key paths for projects, featured, testimonials MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - useProjects: projects.${id}.* → projectData.${id}.* (matches locale structure) - FeaturedProjectsSection: home.projects.* → home.featuredProjects.* - TestimonialsSection: home.testimonials.* → testimonials.* --- app/components/sections/FeaturedProjectsSection.vue | 4 ++-- app/components/sections/TestimonialsSection.vue | 10 +++++----- app/composables/useProjects.ts | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/app/components/sections/FeaturedProjectsSection.vue b/app/components/sections/FeaturedProjectsSection.vue index 3af4537..49af8b5 100644 --- a/app/components/sections/FeaturedProjectsSection.vue +++ b/app/components/sections/FeaturedProjectsSection.vue @@ -7,8 +7,8 @@ const { featuredProjects } = useProjects()
-

{{ t('home.projects.title') }}

-

{{ t('home.projects.subtitle') }}

+

{{ t('home.featuredProjects.title') }}

+

{{ t('home.featuredProjects.subtitle') }}

-

{{ t('home.testimonials.title') }}

-

{{ t('home.testimonials.subtitle') }}

+

{{ t('testimonials.title') }}

+

{{ t('testimonials.subtitle') }}

{{ testimonialsStats.totalReviews }}

-

{{ t('home.testimonials.stats.clients') }}

+

{{ t('testimonials.stats.clients') }}

{{ testimonialsStats.averageRating }}/5

-

{{ t('home.testimonials.stats.rating') }}

+

{{ t('testimonials.stats.rating') }}

{{ testimonialsStats.projectsCompleted }}

-

{{ t('home.testimonials.stats.projects') }}

+

{{ t('testimonials.stats.projects') }}

diff --git a/app/composables/useProjects.ts b/app/composables/useProjects.ts index 58466cf..497651b 100644 --- a/app/composables/useProjects.ts +++ b/app/composables/useProjects.ts @@ -11,10 +11,10 @@ export function useProjects() { const projects = computed(() => projectsData.map((p) => ({ ...p, - title: t(`projects.${p.id}.title`), - description: t(`projects.${p.id}.description`), - longDescription: te(`projects.${p.id}.longDescription`) - ? t(`projects.${p.id}.longDescription`) + title: t(`projectData.${p.id}.title`), + description: t(`projectData.${p.id}.description`), + longDescription: te(`projectData.${p.id}.longDescription`) + ? t(`projectData.${p.id}.longDescription`) : undefined, })), )