From f3b4284afbb38b894164cd4de3e7b690f2bc62a5 Mon Sep 17 00:00:00 2001 From: Luc Mcgrady Date: Mon, 11 Aug 2025 04:44:11 +0100 Subject: [PATCH] Fix/System locale for simulator percentages (#4260) Co-authored-by: Ross Brown --- ts/routes/graphs/simulator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/routes/graphs/simulator.ts b/ts/routes/graphs/simulator.ts index 6de8aedeb..feba9ce57 100644 --- a/ts/routes/graphs/simulator.ts +++ b/ts/routes/graphs/simulator.ts @@ -1,7 +1,7 @@ // Copyright: Ankitects Pty Ltd and contributors // License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html -import { localizedDate } from "@tslib/i18n"; +import { createLocaleNumberFormat, localizedDate } from "@tslib/i18n"; import { axisBottom, axisLeft, @@ -74,7 +74,7 @@ export function renderWorkloadChart( : n.toString(); }; - const formatter = new Intl.NumberFormat(undefined, { + const formatter = createLocaleNumberFormat({ style: "percent", minimumFractionDigits: 0, maximumFractionDigits: 0,