Skip to content

tc39/proposal-intl-unit-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

[DEPRECATED IN FAVOR OF Unified Intl.NumberFormat]

Intl.UnitFormat API Specification [draft]

Status

Stage 1

Implementation Progress

Backpointers

Authors

  • Zibi Braniecki (@zbraniecki)

Reviewers

TBD

Informative

This proposal is based on the LDML spec, List Patterns:

Prior Art

Usage

let o = new Intl.UnitFormat("en", {
    type: "duration",
    unit: "hour",
    style: "long" // default style
});
console.log(o.format(15)); // "15 hours"

Render Spec

npm install
npm run build
open index.html

About

`Intl.UnitFormat` specification [draft]

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Languages