Wrong currency formatting for fr-CH locale
Reported by
eick...@gmail.com,
Mar 6 2018
|
|||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
Steps to reproduce the problem:
1. console.log(new Intl.NumberFormat('fr-CH', { style: 'currency', currency: 'CHF' }).format(5));
What is the expected behavior?
Output: "CHF 5.00" as with the CH locales: de-CH and it-CH
What went wrong?
Output is: "5.00 CHF" - the currency symbol is supposed to be in front of the number.
Did this work before? No
Does this work in other browsers? No
This e.g. works in:
-NodeJs Version 8.9.4 with v8 engine 6.1.534.50
-MS Edge
It does not work in:
-Chrome Stable and Canary
-Current Firefox
-Current Safari
Chrome version: 63.0.3239.132 Channel: stable
OS Version: 10.0
Flash Version:
,
Mar 7 2018
eickeee@ Thanks for the issue. Able to reproduce the issue on Windows 10, Mac OS 10.12.6 and Ubuntu 14.04 on the latest Canary 67.0.3364.0 and Stable 65.0.3325.146. On executing the above code in Devtools -> Console, can see the output as 5.00 CHF. Attached is the screen shot for reference. This is a Non-Regression issue as this behavior is observed from M60 Chrome builds. Hence marking this as Untriaged for further updates from Dev. Thanks..
,
Mar 15 2018
,
Apr 10 2018
That's working as intended. The currency format for fr-CH comes from the CLDR. And, fr-CH in CLDR has the currency after the amount. If you think it's wrong, a bug has to be filed against CLDR at https://unicode.org/cldr/trac/newticket .
,
Apr 10 2018
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by susan.boorgula@chromium.org
, Mar 6 2018