mirror of
https://github.com/Myzel394/kleckrelay-website.git
synced 2025-06-19 07:55:25 +02:00
refactor: Improve i18n for logout
This commit is contained in:
parent
e4fdcecbe6
commit
7229078778
4
public/locales/en-US/logout.json
Normal file
4
public/locales/en-US/logout.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"title": "Log out",
|
||||||
|
"description": "We are logging you out..."
|
||||||
|
}
|
@ -26,29 +26,6 @@
|
|||||||
"title": "Overview",
|
"title": "Overview",
|
||||||
"description": "Not much to see here, yet."
|
"description": "Not much to see here, yet."
|
||||||
},
|
},
|
||||||
"VerifyEmailRoute": {
|
|
||||||
"title": "Verify your email",
|
|
||||||
"isLoading": "Verifying your email...",
|
|
||||||
"isCodeInvalid": "Sorry, but this verification code is invalid.",
|
|
||||||
"errors": {
|
|
||||||
"code": {
|
|
||||||
"invalid": "The verification code is invalid."
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"Recover2FARoute": {
|
|
||||||
"title": "Recover Two-Factor-Authentication",
|
|
||||||
"description": "We are very sorry if you lost your codes. Please enter a recovery code to continue. Note that this will disable two-factor authentication for your account. You can enable it again in the settings.",
|
|
||||||
"forms": {
|
|
||||||
"recoveryCode": {
|
|
||||||
"label": "Recovery Code"
|
|
||||||
},
|
|
||||||
"submit": "Disable 2FA"
|
|
||||||
},
|
|
||||||
"unauthorized": "Please make sure to log in first and then reset your two-factor authentication on its screen.",
|
|
||||||
"canLoginNow": "Two-factor authentication has been disabled. You can now log in.",
|
|
||||||
"loggedIn": "Two-factor authentication has been disabled. You are now logged in."
|
|
||||||
},
|
|
||||||
"CompleteAccountRoute": {
|
"CompleteAccountRoute": {
|
||||||
"forms": {
|
"forms": {
|
||||||
"generateReports": {
|
"generateReports": {
|
||||||
|
@ -8,7 +8,7 @@ import {useNavigateToNext} from "~/hooks"
|
|||||||
import {AuthContext} from "~/components"
|
import {AuthContext} from "~/components"
|
||||||
|
|
||||||
export default function LogoutRoute(): ReactElement {
|
export default function LogoutRoute(): ReactElement {
|
||||||
const {t} = useTranslation()
|
const {t} = useTranslation("logout")
|
||||||
const navigateToNext = useNavigateToNext("/auth/login")
|
const navigateToNext = useNavigateToNext("/auth/login")
|
||||||
const {logout} = useContext(AuthContext)
|
const {logout} = useContext(AuthContext)
|
||||||
|
|
||||||
@ -23,16 +23,14 @@ export default function LogoutRoute(): ReactElement {
|
|||||||
<Grid container spacing={4} direction="column" alignItems="center">
|
<Grid container spacing={4} direction="column" alignItems="center">
|
||||||
<Grid item>
|
<Grid item>
|
||||||
<Typography variant="h6" component="h1">
|
<Typography variant="h6" component="h1">
|
||||||
{t("routes.LogoutRoute.title")}
|
{t("title")}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid item>
|
<Grid item>
|
||||||
<CircularProgress />
|
<CircularProgress />
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid item>
|
<Grid item>
|
||||||
<Typography variant="body1">
|
<Typography variant="body1">{t("description")}</Typography>
|
||||||
{t("routes.LogoutRoute.description")}
|
|
||||||
</Typography>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Box>
|
</Box>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user