diff --git a/landingpage/index.php b/landingpage/index.php index d8e05d9..17db3c9 100644 --- a/landingpage/index.php +++ b/landingpage/index.php @@ -43,7 +43,9 @@ $formatNumber = static function (int $value) use ($numberLocale): string { return $formatted; } } - return number_format($value, 0, $locale === 'de' ? ',' : '.', $locale === 'de' ? '.' : ','); + $decimal = $numberLocale === 'de_DE' ? ',' : '.'; + $thousands = $numberLocale === 'de_DE' ? '.' : ','; + return number_format($value, 0, $decimal, $thousands); }; /** @var array}> $groups */