Translate application interface and day names to French

Update translations for the 404 page and day names in the timesheet detail view.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 55837015-10e9-4be9-b857-7f5e6be73772
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 3f420d9d-06b6-481d-a9a3-eb72799fe9e0
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1cc377db-7ea0-49f2-97ce-c3e87e0228cc/55837015-10e9-4be9-b857-7f5e6be73772/58NwK8G
Replit-Helium-Checkpoint-Created: true
This commit is contained in:
SylvainP1 2026-04-14 08:14:32 +00:00
parent dd2974c148
commit 7707be4eab
3 changed files with 15 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 58 KiB

View File

@ -1,19 +1,25 @@
import { Card, CardContent } from "@/components/ui/card";
import { AlertCircle } from "lucide-react";
import { Link } from "wouter";
import { Button } from "@/components/ui/button";
export default function NotFound() {
return (
<div className="min-h-screen w-full flex items-center justify-center bg-gray-50">
<div className="min-h-screen w-full flex items-center justify-center bg-background">
<Card className="w-full max-w-md mx-4">
<CardContent className="pt-6">
<div className="flex mb-4 gap-2">
<AlertCircle className="h-8 w-8 text-red-500" />
<h1 className="text-2xl font-bold text-gray-900">404 Page Not Found</h1>
<div className="flex mb-4 gap-2 items-center">
<AlertCircle className="h-8 w-8 text-destructive" />
<h1 className="text-2xl font-bold">Page introuvable</h1>
</div>
<p className="mt-4 text-sm text-gray-600">
Did you forget to add the page to the router?
<p className="mt-4 text-sm text-muted-foreground">
La page que vous cherchez n'existe pas ou a é déplacée.
</p>
<Link href="/">
<Button variant="outline" className="mt-6">
Retour au tableau de bord
</Button>
</Link>
</CardContent>
</Card>
</div>

View File

@ -33,6 +33,7 @@ import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from "
import { useToast } from "@/hooks/use-toast";
import { formatMonthYear, STATUS_LABELS, STATUS_COLORS, cn } from "@/lib/utils";
import { getDaysInMonth, isWeekend, format } from "date-fns";
import { fr } from "date-fns/locale";
type LocalEntry = {
timesheetLineId: number;
@ -91,7 +92,7 @@ export default function TimesheetDetailPage() {
dateStr: format(date, "yyyy-MM-dd"),
dayNum: i + 1,
isWeekendDay: isWeekend(date),
dayName: format(date, "EE")
dayName: format(date, "EE", { locale: fr })
};
});