`Intl.UnitFormat` specification [draft]
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
spec
.gitignore
README.md
index.html
package.json

README.md

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