rxaviers / cldr-data-npm

Npm module for Unicode CLDR JSON data
MIT License
42 stars 28 forks source link

Error in conversion between LDML -> JSON for fr-CH data #64

Open ehoogerbeets opened 5 years ago

ehoogerbeets commented 5 years ago

From CLDR 34 in the file common/main/fr_CH.xml (at the end of the file):

        <numbers>
                ...
                <currencyFormats numberSystem="latn">
                        <currencyFormatLength>
                                <currencyFormat type="standard">
                                        <pattern draft="contributed">#,##0.00 ¤;-#,##0.00 ¤</pattern>
                                </currencyFormat>
                        </currencyFormatLength>
                </currencyFormats>
        </numbers>

And this is in cldr-data/main/fr-CH/numbers.json in the property main["fr-CH"].numbers["currencyFormats-numberSystem-latn"].standard:

          "standard": "#,##0.00 ¤ ;-#,##0.00 ¤",

Note that the json version has a non-breaking space before the semi-colon and the XML version does not. Only fr-CH seems to have this problem. The other locales' currency formats are okay.