podzahr/lib/utils.ts
nfel 91c149e92e
main: vibe coded app to feel like paper
Signed-off-by: nfel <nfilsaraee@gmail.com>
2025-12-30 00:00:16 +03:30

9 lines
259 B
TypeScript

/**
* Format a price in Toman with comma separators
* @param price - Price in Toman
* @returns Formatted price string with تومان suffix
*/
export function formatPrice(price: number): string {
return `${price.toLocaleString('fa-IR')} تومان`;
}