/
githubmirror
/
ydb-embedded-ui
Обзор
Документация
Войти
/
githubmirror
/
ydb-embedded-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/utils/numeral.ts
16 строк
496 B
Darya
fix: format bytes columns and avoid refetch on column toggle (#3149)
03 дек 2025, 11:39
Не верифицирован
03 дек 2025, 11:39
aeaaf3c
Код
Авторство
О чём код?
import numeral from 'numeral'; import 'numeral/locales'; // Without this numeral will throw an error when using not 'en' locale import {UNBREAKABLE_GAP} from './constants'; import {Lang, i18n} from './i18n'; // Set space delimiter for all locales possible in project Object.values(Lang).forEach((value) => { if (numeral.locales[value]) { numeral.locales[value].delimiters.thousands = UNBREAKABLE_GAP; } }); numeral.locale(i18n.lang); export const configuredNumeral = numeral;