My Duration Formatter Broke in French. Intl.DurationFormat Doesn't.
DEV Community
My Duration Formatter Broke in French. Intl.DurationFormat Doesn't.
A hand-rolled formatDuration() helper looks finished the day you write it — until the app ships in a second locale. Intl.DurationFormat is the native, locale-correct replacement, with a few sharp edges worth knowing first.
0 comments
No comments yet.