fix: multiple components using wrong locale for ProductCard links

- homepage page.tsx was passing productLocale (SR/EN) instead of locale (sr/en) to ProductCard
- ProductShowcase default locale was "SR" instead of "sr"
- ProductBenefits default locale was "SR" instead of "sr"

These caused URLs like /en/SR/products/... when clicking products
This commit is contained in:
Unchained
2026-03-24 11:38:14 +02:00
parent ead03bc04f
commit 74ab98ad2f
3 changed files with 3 additions and 3 deletions

View File

@@ -78,7 +78,7 @@ export default async function Homepage({ params }: { params: Promise<{ locale: s
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 lg:gap-8">
{featuredProducts.map((product, index) => (
<ProductCard key={product.id} product={product} index={index} locale={productLocale} />
<ProductCard key={product.id} product={product} index={index} locale={locale} />
))}
</div>