Skip to content

Intl.DurationFormat missing from library definitions #60608

Closed

Description

@printfn

⚙ 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

https://github.com/tc39/proposal-intl-duration-format

Activity

  1. json-derulo commented on Dec 10, 2024

    @json-derulo

    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.

  2. printfn commented on Feb 6, 2025

    @printfn
    ContributorAuthor

    It looks like this will ship in Firefox 136: https://bugzilla.mozilla.org/show_bug.cgi?id=1933303

  3. mrleblanc101 commented on Apr 11, 2025

    @mrleblanc101

    This API is now baseline, can we add TS Definition for it ?

  4. theuntitled commented on Apr 20, 2025

    @theuntitled

    This API is now baseline, can we add TS Definition for it ?

    +1

  5. simonhermann commented on Oct 21, 2025

    @simonhermann

    Can somebody explain what's holding this back? It seems quite simple to add.

  6. locked as resolved and limited conversation to collaborators on Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScript

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions