localize file sizes

This commit is contained in:
Danny Coates 2019-03-11 19:28:22 -07:00
parent 163899467d
commit adf9c7b96f
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
3 changed files with 30 additions and 7 deletions

View file

@ -17,6 +17,7 @@ import './main.css';
import User from './user';
import { getTranslator } from './locale';
import Archive from './archive';
import { setTranslate } from './utils';
if (navigator.doNotTrack !== '1' && window.RAVEN_CONFIG) {
Raven.config(window.SENTRY_ID, window.RAVEN_CONFIG).install();
@ -40,6 +41,7 @@ if (process.env.NODE_ENV === 'production') {
}
const translate = await getTranslator(LOCALE);
setTranslate(translate);
window.initialState = {
LIMITS,
DEFAULTS,