userprofile languages
parent
ae0a37df1a
commit
270fa184ae
|
@ -199,5 +199,9 @@
|
||||||
"imprint": "Impressum",
|
"imprint": "Impressum",
|
||||||
"dataPrivacy": "Datenschutz"
|
"dataPrivacy": "Datenschutz"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"userProfile": {
|
||||||
|
"title": "Ihr Profil",
|
||||||
|
"language": "Sprache"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -202,5 +202,9 @@
|
||||||
"imprint": "Imprint",
|
"imprint": "Imprint",
|
||||||
"dataPrivacy": "Data privacy"
|
"dataPrivacy": "Data privacy"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"userProfile": {
|
||||||
|
"title": "Your profile",
|
||||||
|
"language": "Language"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue