Skip to content

signDisplay with formatRange #13

@sffc

Description

@sffc

What should happen here?

const nf = new Intl.NumberFormat("en", {
  signDisplay: "always"
});

console.log(nf.formatRange(50, 70));
console.log(nf.formatRange(50, 50));

Options:

Description 50 - 70 50 - 50
Always obey signDisplay +50–70 +50
Obey on identity fallback 50–70 +50
Ignore 50–70 50

CLDR does not clearly specify this case.

If we picked the second option (obey only on identity fallback), it would work nicely with #6 and #10, to let you toggle back and forth between the two main options for identityFallback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    has-consensusHas consensus and ready to implement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions