From 270fa184aec595230c032a3991bde60e41dbe377 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 24 Jan 2024 19:22:22 +0100 Subject: [PATCH] userprofile languages --- public/locales/de/translation.json | 4 ++++ public/locales/en/translation.json | 4 ++++ src/Pages/UserProfile/index.js | 6 ++++-- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/public/locales/de/translation.json b/public/locales/de/translation.json index ff333f3..751392a 100644 --- a/public/locales/de/translation.json +++ b/public/locales/de/translation.json @@ -199,5 +199,9 @@ "imprint": "Impressum", "dataPrivacy": "Datenschutz" } + }, + "userProfile": { + "title": "Ihr Profil", + "language": "Sprache" } } diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 79d7c6d..f592fe5 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -202,5 +202,9 @@ "imprint": "Imprint", "dataPrivacy": "Data privacy" } + }, + "userProfile": { + "title": "Your profile", + "language": "Language" } } diff --git a/src/Pages/UserProfile/index.js b/src/Pages/UserProfile/index.js index 50e914e..51202fc 100644 --- a/src/Pages/UserProfile/index.js +++ b/src/Pages/UserProfile/index.js @@ -1,4 +1,4 @@ -import { Button, Card, Select } from "antd"; +import { Button, Card, Select, Typography } from "antd"; import { Constants } from "../../utils"; import { useTranslation } from "react-i18next"; @@ -8,7 +8,7 @@ export default function UserProfile({ userSession, setUserSession }) { return ( <> } > + {t("userProfile.language")} +