userprofile languages

master
alex 2024-01-24 19:22:22 +01:00
parent ae0a37df1a
commit 270fa184ae
3 changed files with 12 additions and 2 deletions

View File

@ -199,5 +199,9 @@
"imprint": "Impressum", "imprint": "Impressum",
"dataPrivacy": "Datenschutz" "dataPrivacy": "Datenschutz"
} }
},
"userProfile": {
"title": "Ihr Profil",
"language": "Sprache"
} }
} }

View File

@ -202,5 +202,9 @@
"imprint": "Imprint", "imprint": "Imprint",
"dataPrivacy": "Data privacy" "dataPrivacy": "Data privacy"
} }
},
"userProfile": {
"title": "Your profile",
"language": "Language"
} }
} }

View File

@ -1,4 +1,4 @@
import { Button, Card, Select } from "antd"; import { Button, Card, Select, Typography } from "antd";
import { Constants } from "../../utils"; import { Constants } from "../../utils";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
@ -8,7 +8,7 @@ export default function UserProfile({ userSession, setUserSession }) {
return ( return (
<> <>
<Card <Card
title="Ihr Profil" title={t("userProfile.title")}
extra={ extra={
<Button <Button
type="primary" type="primary"
@ -29,6 +29,8 @@ export default function UserProfile({ userSession, setUserSession }) {
</Button> </Button>
} }
> >
<Typography.Paragraph>{t("userProfile.language")}</Typography.Paragraph>
<Select <Select
style={{ width: "100%" }} style={{ width: "100%" }}
defaultValue={i18n.language} defaultValue={i18n.language}