From 45cc0afb734a422ee7765dc5c60dccbcc6721367 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Tue, 28 Jul 2026 12:13:31 +0200 Subject: feat: warm redesign, full French localization, compact sticky form, fixed row heights, and show quality score in list --- src/routes/+page.server.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/routes/+page.server.ts') diff --git a/src/routes/+page.server.ts b/src/routes/+page.server.ts index 55ac82d..0a8a3f4 100644 --- a/src/routes/+page.server.ts +++ b/src/routes/+page.server.ts @@ -40,7 +40,7 @@ export const actions: Actions = { const categoryId = data.get('category_id')?.toString() || null; if (!name) { - return fail(400, { error: 'Name is required' }); + return fail(400, { error: 'Le nom est requis' }); } const [existing] = await db @@ -77,7 +77,7 @@ export const actions: Actions = { .from(groceries) .where(eq(groceries.id, id)); if (!item) { - return fail(404, { error: 'Item not found' }); + return fail(404, { error: 'Article introuvable' }); } await db @@ -94,7 +94,7 @@ export const actions: Actions = { const categoryId = data.get('category_id')?.toString() || null; if (!name) { - return fail(400, { error: 'Name is required' }); + return fail(400, { error: 'Le nom est requis' }); } const [existing] = await db -- cgit v1.3