mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix/System locale for simulator percentages (#4260)
Co-authored-by: Ross Brown <rbrownwsws@googlemail.com>
This commit is contained in:
parent
fb2e2bd37a
commit
f3b4284afb
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue