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",
"dataPrivacy": "Datenschutz"
}
},
"userProfile": {
"title": "Ihr Profil",
"language": "Sprache"
}
}

View File

@ -202,5 +202,9 @@
"imprint": "Imprint",
"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 { useTranslation } from "react-i18next";
@ -8,7 +8,7 @@ export default function UserProfile({ userSession, setUserSession }) {
return (
<>
<Card
title="Ihr Profil"
title={t("userProfile.title")}
extra={
<Button
type="primary"
@ -29,6 +29,8 @@ export default function UserProfile({ userSession, setUserSession }) {
</Button>
}
>
<Typography.Paragraph>{t("userProfile.language")}</Typography.Paragraph>
<Select
style={{ width: "100%" }}
defaultValue={i18n.language}