Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/calcite-components/src/utils/locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,11 @@ export class NumberStringFormat {
].reverse();

const index = new Map(this._digits.map((d, i) => [d, i]));
const parts = new Intl.NumberFormat(this._numberFormatOptions.locale).formatToParts(-12345678.9);

// numberingSystem is parsed to return consistent decimal separator across browsers.
const parts = new Intl.NumberFormat(this._numberFormatOptions.locale, {
numberingSystem: this._numberFormatOptions.numberingSystem
} as Intl.NumberFormatOptions).formatToParts(-12345678.9);

this._actualGroup = parts.find((d) => d.type === "group").value;
// change whitespace group characters that don't render correctly
Expand Down