2018-12-03 19:37:03 +01:00
|
|
|
import lang from 'i18n-js';
|
2018-06-01 10:25:59 -04:00
|
|
|
import React from 'react';
|
|
|
|
import { render } from 'react-dom';
|
|
|
|
import { Provider } from 'react-redux';
|
2018-06-01 12:45:11 -04:00
|
|
|
import store from './store/configureStore';
|
2018-06-01 10:25:59 -04:00
|
|
|
import App from './dapp';
|
2018-12-03 19:37:03 +01:00
|
|
|
import init from './store/init';
|
|
|
|
import translations from './languages';
|
2018-06-01 10:25:59 -04:00
|
|
|
import './dapp.css';
|
|
|
|
|
2018-12-03 19:37:03 +01:00
|
|
|
// Init i18n translation
|
|
|
|
lang.defaultLocale = 'en';
|
|
|
|
lang.locale = navigator.language;
|
|
|
|
lang.fallbacks = true;
|
|
|
|
lang.translations = translations;
|
|
|
|
|
|
|
|
// Init Redux store
|
2018-06-01 12:45:11 -04:00
|
|
|
init();
|
2018-06-01 10:25:59 -04:00
|
|
|
|
|
|
|
render(
|
|
|
|
<Provider store={store}>
|
|
|
|
<App />
|
|
|
|
</Provider>,
|
|
|
|
document.getElementById('app')
|
|
|
|
);
|