From: Daniel Karbach Date: Fri, 10 Feb 2023 15:48:51 +0000 (+0100) Subject: add language references to tech pages X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=52424eef6a48c5019d48cea8e38daa8375660b29;p=alttp.git add language references to tech pages --- diff --git a/resources/js/components/App.js b/resources/js/components/App.js index 9656da2..44c19bd 100644 --- a/resources/js/components/App.js +++ b/resources/js/components/App.js @@ -15,6 +15,7 @@ import Tournament from './pages/Tournament'; import User from './pages/User'; import AlttpBaseRomProvider from '../helpers/AlttpBaseRomContext'; import UserContext from '../helpers/UserContext'; +import i18n from '../i18n'; const App = () => { const [user, setUser] = useState(null); @@ -62,6 +63,7 @@ const App = () => { + {t('general.appName')} diff --git a/resources/js/components/common/LanguageSwitcher.js b/resources/js/components/common/LanguageSwitcher.js index ff8b197..c6ae66a 100644 --- a/resources/js/components/common/LanguageSwitcher.js +++ b/resources/js/components/common/LanguageSwitcher.js @@ -17,7 +17,8 @@ const setLanguage = (user, language) => { const LanguageSwitcher = ({ user }) =>