diff --git a/src/App.tsx b/src/App.tsx index fdd8be8..ad4cee2 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,13 +1,19 @@ import React from 'react' +import { useTranslation } from 'react-i18next' import { Switch, Route, Redirect } from 'react-router-dom' -import { Example } from './pages/Example' +import { Example } from './pages/Example/Example' +import { ExampleNL } from './pages/Example/ExampleNL' import { Home } from './pages/Home' export function App() { + const { i18n } = useTranslation() + return ( - + + {i18n.language === 'en' ? : } + ) diff --git a/src/components/home/Navigation.tsx b/src/components/home/Navigation.tsx index 80b9a13..49925d0 100644 --- a/src/components/home/Navigation.tsx +++ b/src/components/home/Navigation.tsx @@ -6,8 +6,8 @@ import arrow from '../../assets/arrow.svg' import { useTranslation } from 'react-i18next' export function Navigation() { - const { t, i18n } = useTranslation() - + const { t } = useTranslation() + return (