Skip to content

Use intl to format price base on region #41

@sanchis

Description

@sanchis

Use a advanced feature Intl to format correctly price

const formatter = new Intl.NumberFormat('es-ES', {
  style: 'currency',
  currency: 'EUR'
})
return formatter.format(price)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions