diff --git a/src/App.js b/src/App.js index 00d595b..e896153 100644 --- a/src/App.js +++ b/src/App.js @@ -16,16 +16,27 @@ import Filters from './components/Filters'; import styles from './styles/main.module.scss'; import '@blueprintjs/core/lib/css/blueprint.css'; -import CoachDaveSponsor from "./components/CoachDaveSponsor"; +import CoachDaveSponsor from './components/CoachDaveSponsor'; + +import './styles/fonts.css'; export default function App(): React.Node { - const { t } = useTranslation(); + const { t, i18n } = useTranslation(); const dispatch = useDispatch(); React.useEffect(() => { dispatch(startListener()); + + return () => {}; }, []); + React.useEffect(() => { + document.body.dir = i18n.dir(); + document.documentElement.setAttribute('lang', i18n.language); + + return () => {}; + }, [i18n.language]); + return (