Merge pull request #1213 from mozilla/localized-filesize

localize file sizes
This commit is contained in:
Danny Coates 2019-03-12 21:49:36 -07:00 committed by GitHub
commit f4e185bdc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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();
@ -45,6 +46,7 @@ if (process.env.NODE_ENV === 'production') {
}
const translate = await getTranslator(LOCALE);
setTranslate(translate);
window.initialState = {
LIMITS,
DEFAULTS,