mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
fix(i18n): форматировать даты и числа локалью выбранного языка, а не браузера
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import { uiLocale } from '@/utils/uiLocale';
|
||||
import type { SubscriptionStatus } from '@/types/referralNetwork';
|
||||
|
||||
/**
|
||||
* Format kopeks to a human-readable ruble string.
|
||||
*/
|
||||
export function formatKopeksToRubles(kopeks: number): string {
|
||||
return `${(kopeks / 100).toLocaleString('ru-RU')}`;
|
||||
return `${(kopeks / 100).toLocaleString(uiLocale())}`;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user