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

@@ -7,7 +7,7 @@ interface ProductBenefitsProps {
locale?: string;
}
export default function ProductBenefits({ locale = "SR" }: ProductBenefitsProps) {
export default function ProductBenefits({ locale = "sr" }: ProductBenefitsProps) {
const t = useTranslations("ProductBenefits");
const benefits = [