mirror of
https://github.com/Myzel394/kleckrelay-website.git
synced 2025-06-19 15:55:26 +02:00
refactor: Improve i18n for complete account
This commit is contained in:
parent
e5d1ee73c6
commit
648a222aef
@ -8,5 +8,9 @@
|
|||||||
"title": "Set up your password",
|
"title": "Set up your password",
|
||||||
"description": "Please enter a safe password so that we can encrypt your data."
|
"description": "Please enter a safe password so that we can encrypt your data."
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"alreadyCompleted": {
|
||||||
|
"title": "Encryption already enabled",
|
||||||
|
"description": "You already have encryption enabled. Changing passwords is currently not supported."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,22 +28,6 @@
|
|||||||
},
|
},
|
||||||
"CompleteAccountRoute": {
|
"CompleteAccountRoute": {
|
||||||
"forms": {
|
"forms": {
|
||||||
"password": {
|
|
||||||
"title": "Set up your password",
|
|
||||||
"description": "Please enter a safe password so that we can encrypt your data.",
|
|
||||||
"continueAction": "Continue",
|
|
||||||
"form": {
|
|
||||||
"password": {
|
|
||||||
"label": "Password",
|
|
||||||
"placeholder": "********"
|
|
||||||
},
|
|
||||||
"passwordConfirm": {
|
|
||||||
"label": "Confirm Password",
|
|
||||||
"placeholder": "Re-enter your password",
|
|
||||||
"mustMatchHelperText": "Passwords do not match."
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"available": {
|
"available": {
|
||||||
"title": "Encryption already enabled",
|
"title": "Encryption already enabled",
|
||||||
"description": "You already have encryption enabled. Changing passwords is currently not supported."
|
"description": "You already have encryption enabled. Changing passwords is currently not supported."
|
||||||
|
@ -9,7 +9,7 @@ import GenerateEmailReportsForm from "~/route-widgets/CompleteAccountRoute/Gener
|
|||||||
import PasswordForm from "~/route-widgets/CompleteAccountRoute/PasswordForm"
|
import PasswordForm from "~/route-widgets/CompleteAccountRoute/PasswordForm"
|
||||||
|
|
||||||
export default function CompleteAccountRoute(): ReactElement {
|
export default function CompleteAccountRoute(): ReactElement {
|
||||||
const {t} = useTranslation()
|
const {t} = useTranslation("complete-account")
|
||||||
const {encryptionStatus} = useContext(AuthContext)
|
const {encryptionStatus} = useContext(AuthContext)
|
||||||
const navigateToNext = useNavigateToNext()
|
const navigateToNext = useNavigateToNext()
|
||||||
|
|
||||||
@ -50,13 +50,11 @@ export default function CompleteAccountRoute(): ReactElement {
|
|||||||
>
|
>
|
||||||
<Grid item>
|
<Grid item>
|
||||||
<Typography variant="h6" component="h1" align="center">
|
<Typography variant="h6" component="h1" align="center">
|
||||||
{t("routes.CompleteAccountRoute.forms.available.title")}
|
{t("alreadyCompleted.title")}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid item>
|
<Grid item>
|
||||||
<Typography variant="body1">
|
<Typography variant="body1">{t("alreadyCompleted.description")}</Typography>
|
||||||
{t("routes.CompleteAccountRoute.forms.available.description")}
|
|
||||||
</Typography>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Paper>
|
</Paper>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user