refactor: cleanup

This commit is contained in:
David Ralph
2021-03-23 13:10:34 +00:00
parent b4e1d00633
commit b773f256a4
33 changed files with 110 additions and 336 deletions

View File

@@ -15,6 +15,7 @@ import merge from '@material-ui/utils/deepmerge';
const languagecode = localStorage.getItem('language') || 'en-GB';
// we set things to window. so they're global and we avoid passing the translation strings as props to each component
window.languagecode = languagecode;
// these are merged so if a string is untranslated it doesn't break mue
window.language = merge(require('./translations/en-GB.json'), require(`./translations/${languagecode}.json`));
// window.constants