fix: localize widget chart formatting

This commit is contained in:
Thomas Camlong committed 2026-08-02 16:48:34 +02:00
1 parent d97f1bd34b
commit ed8ef15f12
5 files changed
+52 -40

No files matched your search

+1 -1
View File
@@ -91,7 +91,7 @@ export function UmamiContent({
const { visitorStats } = firstResult;
const chartData = visitorStats.dataPoints.map((point: UmamiVisitorStats["dataPoints"][number]) => ({
label: formatXLabel(point.timestamp, timeFrame),
label: formatXLabel(point.timestamp, timeFrame, locale),
visitors: point.visitors,
...(point.events !== undefined ? { events: point.events } : {}),
}));