Skip to content

Refactor: remove en-IE from Intl.NumberFormat and create a formatNumber function #50

Open
@andreaforni

Description

@andreaforni

In different parts of the app (for example here, here and here) the following line of code is used to format numbers:

new Intl.NumberFormat('en-IE').format(<value>)

We should:

  • remove the hardcoded en-IE locale and read the current used by the app so that the numbers can be formatted accordingly
  • extract a formatNumber to reduce duplication.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions