[Webkit-unassigned] [Bug 252239] New: Currency number formatting in "en_DE" locale does not follow CLDR guidance
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Feb 14 06:33:38 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=252239
Bug ID: 252239
Summary: Currency number formatting in "en_DE" locale does not
follow CLDR guidance
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: andrew at andrewkincaid.com
https://cldr.unicode.org/translation/number-currency-formats/number-symbols
"For English regional locales (e.g. en_DE) where English is not the primary language of the country/region (e.g. en_DE; English as used in Germany), the number formats and date formats should follow the English formatting usage in that country/region. Often, the formatting usage in English tend to follow the British or American formatting rather than the formatting of the primary language. Consult with the English versions of prominent magazines or newspapers for guidance on date and number format usage."
Steps to Reproduce:
1. Execute the following script in the JavaScript console in Safari 16.x:
Number('1234.5').toLocaleString('en-DE', {style: 'currency', currency: 'EUR'});
Expected behavior:
Returns '€1,234.50' (same as V8 and SpiderMonkey)
Actual behavior:
Returns '1.234,50 €'
--
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/20230214/6ccef245/attachment.htm>
More information about the webkit-unassigned
mailing list