update project fetching method to select the right language

This commit is contained in:
2026-04-17 09:36:56 +02:00
parent 17d46f8c78
commit 66717a2645
3 changed files with 33 additions and 23 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ type props = {
export default async function Home({ params }: props) {
const { locale } = await params;
const projects = getAllProjects().filter((item) => item.ready);
const projects = getAllProjects(locale).filter((item) => item.ready);
return (
<main className="bg-brand-beige text-brand-brown flex flex-col">
@@ -25,4 +25,4 @@ export default async function Home({ params }: props) {
</div>
</main>
);
}
}