[Webkit-unassigned] [Bug 251058] New: Safari's Intl.NumberFormat does not support formatting of MYR (Malaysian) currencies

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 23 18:28:25 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=251058

            Bug ID: 251058
           Summary: Safari's Intl.NumberFormat does not support formatting
                    of MYR (Malaysian) currencies
           Product: WebKit
           Version: Safari 16
          Hardware: Mac (Intel)
                OS: macOS 12
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jamespangmunwai at gmail.com

Created attachment 464622

  --> https://bugs.webkit.org/attachment.cgi?id=464622&action=review

Safari console replication of formatting MYR currencies with Intl.NumberFormat

Hi team, currently Safari's Intl.NumberFormat does not seem to support MYR currencies, the `format` function outputs weird symbols.


For e.g.


```js
const formatter = new Intl.NumberFormat("MY", {
    style: 'currency',
    currency: "MYR",
    currencyDisplay: 'narrowSymbol',
    minimumFractionDigits: 0,
    maximumFractionDigits: 0
  });

formatter.format(123);

// output is ၁၂၃ RM, instead of RM123
```

Note that Chrome is formatting correctly and does not have this output.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230124/0387ae5f/attachment.htm>


More information about the webkit-unassigned mailing list