From 47007232b8efc57a70b3a6493ec3e6b6a37f9c92 Mon Sep 17 00:00:00 2001 From: DJ Mountney Date: Mon, 20 Nov 2023 12:28:55 -0800 Subject: [PATCH] Switch from en-ZA to en-SE for space-comma NumberFormat (#1938) --- packages/loot-core/src/shared/util.ts | 2 +- upcoming-release-notes/1938.md | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 upcoming-release-notes/1938.md 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