Switch from en-ZA to en-SE for space-comma NumberFormat (#1938)

This commit is contained in:
DJ Mountney
2023-11-20 12:28:55 -08:00
committed by GitHub
parent 4761e9ce2f
commit 47007232b8
2 changed files with 7 additions and 1 deletions

View File

@@ -219,7 +219,7 @@ export function getNumberFormat({ format, hideFraction } = numberFormatConfig) {
switch (format) {
case 'space-comma':
locale = 'en-ZA';
locale = 'en-SE';
regex = /[^-0-9,]/g;
separator = ',';
break;

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [twk3]
---
Fix space-comma format for newer NodeJS versions (18.18, and 21.x), fixes #1937