Display numbers using the locale format in tables

This commit is contained in:
Andrew Kingston 2024-10-18 09:56:35 +01:00
parent 02a60ba55d
commit 1109e27b04
No known key found for this signature in database
1 changed files with 5 additions and 1 deletions

View File

@ -52,7 +52,11 @@
{:else}
<div class="text-cell" class:number={type === "number"}>
<div class="value">
{value ?? ""}
{#if type === "number"}
{(value ?? "").toLocaleString()}
{:else}
{value ?? ""}
{/if}
</div>
</div>
{/if}