diff --git a/packages/loot-core/src/shared/util.ts b/packages/loot-core/src/shared/util.ts index b4d64754853..6e744c8a75a 100644 --- a/packages/loot-core/src/shared/util.ts +++ b/packages/loot-core/src/shared/util.ts @@ -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; diff --git a/upcoming-release-notes/1938.md b/upcoming-release-notes/1938.md new file mode 100644 index 00000000000..c4be10c78b1 --- /dev/null +++ b/upcoming-release-notes/1938.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [twk3] +--- + +Fix space-comma format for newer NodeJS versions (18.18, and 21.x), fixes #1937 \ No newline at end of file