Intl.DurationFormat Playground

An object {hours, minutes} written out as a phrase per locale, down to the digital style: how does it read in Indonesian? Checked first: not every browser has…

Why it matters

Durations are everywhere: video length, reading time, cooking time, a timer’s rest. Building them yourself (h + ' hours ' + m + ' minutes') breaks the grammar of other languages and drifts. DurationFormat gives one API, right per locale, with four lengths.

The key idea

A duration object becomes a local phrase, field by field

Common mistakes

Try it in this playground