@hipay/hipay-material-ui 1.0.0-beta.20 → 1.0.0-beta.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -55,7 +55,7 @@ function formatNumber(number) {
55
55
  useGrouping: true
56
56
  };
57
57
 
58
- return number.toLocaleString(locale, options);
58
+ return number.toLocaleString(locale.replace(/_/g, '-'), options);
59
59
  }
60
60
 
61
61
  /**
@@ -111,7 +111,7 @@ function formatCurrencyAmount(amount) {
111
111
  currencyDisplay: 'symbol'
112
112
  };
113
113
 
114
- var returnValue = value.toLocaleString(locale, options);
114
+ var returnValue = value.toLocaleString(locale.replace(/_/g, '-'), options);
115
115
 
116
116
  // Place unit (k, M) after number (don't move currency symbol !)
117
117
  if (unit !== '') {
@@ -142,7 +142,7 @@ function formatRate(rate) {
142
142
  style: 'percent'
143
143
  };
144
144
 
145
- return rate.toLocaleString(locale, options);
145
+ return rate.toLocaleString(locale.replace(/_/g, '-'), options);
146
146
  }
147
147
 
148
148
  /**