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} /> ))}