Fix/System locale for simulator percentages (#4260)

Co-authored-by: Ross Brown <rbrownwsws@googlemail.com>
This commit is contained in:
Luc Mcgrady 2025-08-11 04:44:11 +01:00 committed by Thomas Rixen
parent d340857c04
commit ef65f81465

View file

@ -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,