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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
  /**