We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e03d8cc commit 5d58fcfCopy full SHA for 5d58fcf
src/utils/index.js
@@ -1,11 +1,12 @@
1
import numeral from 'numeral';
2
import _ from 'lodash';
3
4
+import {i18n} from './i18n';
5
import {MEGABYTE, TERABYTE, DAY_IN_SECONDS, GIGABYTE} from './constants';
6
7
import locales from 'numeral/locales'; // eslint-disable-line no-unused-vars
-numeral.locale('ru');
8
-numeral.localeData().delimiters.decimal = '.';
+
9
+numeral.locale(i18n.lang);
10
11
export const formatBytes = (bytes) => {
12
return numeral(bytes).format('0 ib').replace('i', '');
0 commit comments