我正在使用Intl.NumberFormat以正确的货币格式显示价格。问题在于一些国家,例如埃及,有多个货币符号(来源:https://en.wikipedia.org/wiki/Egyptian_pound)。例如,如果我使用以下代码:
console.log(new Intl.NumberFormat('ar-EG',{ style: 'currency',currency: 'EGP' }).format(number));
它将打印出“ ١٢٣,٤٥٦。٧٩ج.م.”。尽管此格式是正确的,但似乎更常见的格式是显示价格,例如“ LE 123,456,79”。我该如何工作?