Files
podzahr/lib/utils.ts
T
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')} تومان`;
}