init project
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
export function formatPriceRub(priceCents: number): string {
|
||||
return new Intl.NumberFormat('ru-RU', {
|
||||
style: 'currency',
|
||||
currency: 'RUB',
|
||||
maximumFractionDigits: 0,
|
||||
}).format(priceCents / 100)
|
||||
}
|
||||
Reference in New Issue
Block a user