Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScript
Milestone
Description
⚙ Compilation target
ESNext
⚙ Library
ESNext
Missing / Incorrect Definition
Intl.DurationFormat is missing. It's implemented in all browsers.
Sample Code
new Intl.DurationFormat('en-US', { style: 'long' }).format({ hours: 5, minutes: 2, seconds: 42 })
// '5 hours, 2 minutes, 42 seconds'Documentation Link
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat
Reacted by Maalej, Bram Kragten, Justin Fagnani, Gabriel Pioto, Daniel Kimmich, Luke Deen Taylor, Ádám Szigeti, hillin, bugproof, michael lechner and 75 more
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScript
Activity
Localize durations on frontend (#2196)
json-derulo commentedon Dec 10, 2024
This feature is now also implemented in Firefox Nightly, behind a flag. So we can expect it to be available in all major browsers in the foreseeable future.
printfn commentedon Feb 6, 2025
It looks like this will ship in Firefox 136: https://bugzilla.mozilla.org/show_bug.cgi?id=1933303
mrleblanc101 commentedon Apr 11, 2025
This API is now baseline, can we add TS Definition for it ?
theuntitled commentedon Apr 20, 2025
+1
simonhermann commentedon Oct 21, 2025
Can somebody explain what's holding this back? It seems quite simple to add.