Skip to content

Commit

Permalink
Switch from en-ZA to en-SE for space-comma NumberFormat (#1938)
Browse files Browse the repository at this point in the history
  • Loading branch information
twk3 authored Nov 20, 2023
1 parent 4761e9c commit 4700723
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/loot-core/src/shared/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/1938.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [twk3]
---

Fix space-comma format for newer NodeJS versions (18.18, and 21.x), fixes #1937

0 comments on commit 4700723

Please sign in to comment.