Skip to content

Switching the language doesn't affect Intl.Numberformat #24

@schuetzm

Description

@schuetzm

Switch to German, open browser console, try this:

formatter = new Intl.NumberFormat(undefined, {
    style: 'currency',
    currency: 'EUR',
});
formatter.format(10)

Result: "10,00 €"

Then switch to a different language, reload the page, run the same code. The result is still "10,00 €"; it should have been "€10.00".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions