ServerNotAvailable translation

master
Tudor Stanciu 2022-12-18 17:28:05 +02:00
parent 677de87434
commit 735bba1e4d
3 changed files with 15 additions and 4 deletions

View File

@ -88,5 +88,10 @@
"LinkCopiedToClipboard": "The link has been copied to the clipboard."
}
}
},
"ServerAvailability": {
"Unavailable": "Oops. Looks like the server is currently unavailable.",
"TryAgain": "Try again in a few seconds",
"Retry": "Retry"
}
}

View File

@ -79,5 +79,10 @@
"LinkCopiedToClipboard": "Linkul a fost copiat în clipboard."
}
}
},
"ServerAvailability": {
"Unavailable": "Hopa! Se pare că serverul nu este disponibil momentan.",
"TryAgain": "Încercați din nou în câteva secunde",
"Retry": "Reîncercați"
}
}

View File

@ -4,9 +4,11 @@ import { Link } from "react-router-dom";
import useStyles from "../styles";
import classnames from "classnames";
import ServerIsDown from "../../../../images/ServerIsDown.gif";
import { useTranslation } from "react-i18next";
const ServerNotAvailable = () => {
const classes = useStyles();
const { t } = useTranslation();
return (
<Grid container className={classes.container}>
@ -22,7 +24,7 @@ const ServerNotAvailable = () => {
variant="h5"
className={classnames(classes.textRow, classes.safetyText)}
>
{"Oops. Looks like the server is currently unavailable."}
{t("ServerAvailability.Unavailable")}
</Typography>
<Typography
variant="h6"
@ -30,17 +32,16 @@ const ServerNotAvailable = () => {
colorBrightness="secondary"
className={classnames(classes.textRow, classes.safetyText)}
>
{"Try again in a few seconds"}
{t("ServerAvailability.TryAgain")}
</Typography>
<Button
variant="contained"
// color="primary"
component={Link}
to="/"
size="large"
className={classes.button}
>
Retry
{t("ServerAvailability.Retry")}
</Button>
</Paper>
</Grid>