* implement i18n capability * reset package.lock file * remove custom fallback * fix relative path for i18n files * check for language support before fetch request * add LanguageDropdown component, es translation file to prove functionality * remove boilerplate * bundle default english translation with app * add missing file * rollup component-level i18n files * cleanup Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
19 lines
438 B
TypeScript
19 lines
438 B
TypeScript
import { ThemeProvider } from '@material-ui/styles';
|
|
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
|
|
|
|
import { AppShell } from 'containers';
|
|
|
|
import { materialTheme } from './material-theme';
|
|
import './i18n';
|
|
|
|
import './index.css';
|
|
|
|
const appWithMaterialTheme = () => (
|
|
<ThemeProvider theme={materialTheme}>
|
|
<AppShell />
|
|
</ThemeProvider>
|
|
);
|
|
|
|
ReactDOM.render(appWithMaterialTheme(), document.getElementById('root'));
|