export default function formatNumber(number) {

  return new Number(number).toLocaleString("de", {
    maximumFractionDigits: 1,
    minimumFractionDigits: 0
  });
}

@@ -40,16 +40,67 @@
 mber) %7B%0A
+  const locale = window.navigator.language %7C%7C 'de';
 %0A  retur
@@ -105,12 +105,8 @@
 urn 
-new 
 Numb
@@ -135,12 +135,14 @@
 ing(
-%22de%22
+locale
 , %7B%0A

use window.navigator.language to format numbers