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 GitHub
parent fb2e2bd37a
commit f3b4284afb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,7 @@
// Copyright: Ankitects Pty Ltd and contributors // Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html // 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 { import {
axisBottom, axisBottom,
axisLeft, axisLeft,
@ -74,7 +74,7 @@ export function renderWorkloadChart(
: n.toString(); : n.toString();
}; };
const formatter = new Intl.NumberFormat(undefined, { const formatter = createLocaleNumberFormat({
style: "percent", style: "percent",
minimumFractionDigits: 0, minimumFractionDigits: 0,
maximumFractionDigits: 0, maximumFractionDigits: 0,