From 6b750df1c4c7462d1abe3f535d9e92d824a28516 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Mon, 23 Mar 2026 21:44:16 +0100 Subject: [PATCH] fix: remove hardcoded locales from UI formatting Use browser default locale instead of hardcoded 'en-US' and 'en-GB' for number and time formatting. Co-Authored-By: Claude Opus 4.6 (1M context) --- ui/src/pages/Dashboard/Dashboard.tsx | 8 ++++---- ui/src/pages/ExchangeDetail/ExchangeDetail.tsx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/src/pages/Dashboard/Dashboard.tsx b/ui/src/pages/Dashboard/Dashboard.tsx index fac58a57..7493a6c0 100644 --- a/ui/src/pages/Dashboard/Dashboard.tsx +++ b/ui/src/pages/Dashboard/Dashboard.tsx @@ -114,7 +114,7 @@ export default function Dashboard() {
0 ? 'up' : exchangeTrend < 0 ? 'down' : 'neutral'} trendValue={exchangeTrend > 0 ? `+${exchangeTrend.toFixed(0)}%` : `${exchangeTrend.toFixed(0)}%`} @@ -124,7 +124,7 @@ export default function Dashboard() { = 0 ? 'up' : 'down'} trendValue={`${successRateDelta >= 0 ? '+' : ''}${successRateDelta.toFixed(1)}%`} accent="success" @@ -147,8 +147,8 @@ export default function Dashboard() { /> diff --git a/ui/src/pages/ExchangeDetail/ExchangeDetail.tsx b/ui/src/pages/ExchangeDetail/ExchangeDetail.tsx index 817a8260..f03b2e69 100644 --- a/ui/src/pages/ExchangeDetail/ExchangeDetail.tsx +++ b/ui/src/pages/ExchangeDetail/ExchangeDetail.tsx @@ -131,7 +131,7 @@ export default function ExchangeDetail() {
Started
- {detail.startTime ? new Date(detail.startTime).toLocaleTimeString('en-GB', { hour: '2-digit', minute: '2-digit', second: '2-digit' }) : '—'} + {detail.startTime ? new Date(detail.startTime).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', second: '2-digit' }) : '—'}