≈ the.bay.news

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

Sign in to join the discussion — your thebay.events account works here.

No comments yet.