feat: save search params from select-rate to store
This commit is contained in:
8
utils/format.ts
Normal file
8
utils/format.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
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