From 569a3e65fe151025661b47852946889b164e0ae2 Mon Sep 17 00:00:00 2001 From: Unchained Date: Tue, 24 Mar 2026 14:16:49 +0200 Subject: [PATCH] fix: correct metadata access and locale variable names --- src/app/[locale]/about/page.tsx | 2 +- src/app/[locale]/products/[slug]/page.tsx | 2 +- src/app/[locale]/products/page.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/[locale]/about/page.tsx b/src/app/[locale]/about/page.tsx index 0976348..38039be 100644 --- a/src/app/[locale]/about/page.tsx +++ b/src/app/[locale]/about/page.tsx @@ -45,7 +45,7 @@ export default async function AboutPage({ params }: AboutPageProps) {
{metadata.productionAlt}
diff --git a/src/app/[locale]/products/[slug]/page.tsx b/src/app/[locale]/products/[slug]/page.tsx index 5bbc541..cc6b20d 100644 --- a/src/app/[locale]/products/[slug]/page.tsx +++ b/src/app/[locale]/products/[slug]/page.tsx @@ -87,7 +87,7 @@ export default async function ProductPage({ params }: ProductPageProps) { let relatedProducts: Product[] = []; try { - const allProducts = await getProducts(productLocale, 8); + const allProducts = await getProducts(saleorLocale, 8); relatedProducts = allProducts .filter((p: Product) => p.id !== product.id) .slice(0, 4); diff --git a/src/app/[locale]/products/page.tsx b/src/app/[locale]/products/page.tsx index b3dd28e..28fee69 100644 --- a/src/app/[locale]/products/page.tsx +++ b/src/app/[locale]/products/page.tsx @@ -86,7 +86,7 @@ export default async function ProductsPage({ params }: ProductsPageProps) { key={product.id} product={product} index={index} - locale={productLocale} + locale={validLocale} /> ))}