Skip to content

Supporting a growing number of "unit" values in formatOptions #607

@Westbrook

Description

@Westbrook

Looking at get support in formatOptions for graphical measurements like "pixels", "points", and "picas", I've recently been reviewing the growing number of "please add these unit" issues in this repo:

And found that starting from tc39/proposal-unified-intl-numberformat#39 the team has been looking for ways to contain the shipped units/translations so as to keep browser builds down.

In support of that goal, I wonder if there would be appetite for a user space partnership with a proposal like #434 wherein additional units could be added to the browser API from the outside as opposed to or as well as from within the browser? Much like we see in the @formatjs/intl-numberformat polyfill for this API, were there to be a Intl.NumberFormat.__addLocaleData equivalent method built into the NumberFormat API a user could load new translations to be leveraged by the browser directly within the API without having to have innumerable values supported by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DataRelated to locale datac: metaComponent: intl-wide issuess: commentStatus: more info is needed to move forward

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions