We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03ccdc8 commit eedbd41Copy full SHA for eedbd41
src/duration-format-ponyfill.ts
@@ -110,14 +110,14 @@ export default class DurationFormat {
110
: unitStyle === 'numeric'
111
? {}
112
: {style: 'unit', unit: nfUnit, unitDisplay: unitStyle}
113
-
+
114
let formattedValue = new Intl.NumberFormat(locale, nfOpts).format(value)
115
116
// Custom handling for narrow month formatting to use "mo" instead of "m"
117
if (unit === 'months' && unitStyle === 'narrow') {
118
formattedValue = formattedValue.replace(/(\d+)m$/, '$1mo')
119
}
120
121
list.push(formattedValue)
122
123
return new ListFormat(locale, {
0 commit comments