Skip to content

Commit

Permalink
Disable grouping for numeric units in Intl.DurationFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
anba authored and ptomato committed Nov 7, 2024
1 parent 1128b6f commit 68b09b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions harness/testIntl.js
Original file line number Diff line number Diff line change
Expand Up @@ -2673,6 +2673,8 @@ function partitionDurationFormatPattern(durationFormat, duration) {
nfOpts.style = "unit";
nfOpts.unit = numberFormatUnit;
nfOpts.unitDisplay = style;
} else {
nfOpts.useGrouping = false;
}

let nf = new Intl.NumberFormat(locale, nfOpts);
Expand Down

0 comments on commit 68b09b8

Please sign in to comment.