Disable grouping for numeric units in Intl.DurationFormat

This commit is contained in:
André Bargull 2024-11-07 18:58:20 +01:00 committed by Philip Chimento
parent 1128b6fcd2
commit e7024c1761
1 changed files with 2 additions and 0 deletions

View File

@ -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);