globalizejs / globalize

A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data
https://globalizejs.com
MIT License
4.8k stars 603 forks source link

Currency Format issue in French (2) #875

Open geffkas opened 5 years ago

geffkas commented 5 years ago

Hello,

When i format a amount in french like that

Globalize.locale('fr');
Globalize.currencyFormatter("EUR", <CurrencyFormatterOptions>{ compact: "short", symbolForm: "narrow", minimumFractionDigits: 0, maximumFractionDigits: 2 })

i get "3,78 M €"

The issue is the blank space between "M" and "€" I would like to get "3,78 M€".

I managed to handle CLDR data by overwriting it. However, nothing happens if I change this line. I get closer to the result if I change this line. Strangely, something happens if I change this line, using a currency formatter. Is there a way to force the use of "currencyFormats-numberSystem-latn/short/standard/..." ? Thank you by advance.

Originally posted by @geffkas in https://github.com/globalizejs/globalize/issues/873#issuecomment-529533947