fix(SW-315): formatting numbers via locale, fixed a few padding issues
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
import { Lang } from "@/constants/languages"
|
||||
|
||||
/// Function to format numbers with space as thousands separator
|
||||
export function formatNumber(num: number) {
|
||||
// sv hardcoded to force space on thousands
|
||||
const formatter = new Intl.NumberFormat(Lang.sv)
|
||||
return formatter.format(num)
|
||||
}
|
||||
Reference in New Issue
Block a user