Fix runtime default locale resolution
CI / quality (push) Waiting to run

This commit is contained in:
MOH
2026-03-15 06:02:27 +01:00
parent 9b8409a7d3
commit c18128c965
29 changed files with 330 additions and 108 deletions
+3 -1
View File
@@ -9,6 +9,7 @@ import { getLocalizedValue, type PortfolioProjectView } from "@/lib/portfolio";
type PortfolioProjectGridProps = {
locale: AppLocale;
defaultLocale: AppLocale;
projects: PortfolioProjectView[];
emptyLabel: string;
openLabel: string;
@@ -16,6 +17,7 @@ type PortfolioProjectGridProps = {
export function PortfolioProjectGrid({
locale,
defaultLocale,
projects,
emptyLabel,
openLabel,
@@ -27,7 +29,7 @@ export function PortfolioProjectGrid({
<AppCard interactive>
<CardContent className="p-5">
<Link
href={getLocalizedPath(locale, `/portfolio/${item.slug}`)}
href={getLocalizedPath(locale, `/portfolio/${item.slug}`, defaultLocale)}
className="group block"
>
<div className="flex items-center justify-between gap-3">