new translations

master
Tudor Stanciu 2020-05-13 23:30:12 +03:00
parent 9b58bc5048
commit 7df9ef8d47
3 changed files with 22 additions and 8 deletions

View File

@ -17,5 +17,12 @@
"Sessions": "Sessions", "Sessions": "Sessions",
"About": "About" "About": "About"
}, },
"Session": "Session" "Session": {
"Session": "Session",
"Active": "Active",
"StartDate": "Start date",
"StopDate": "Stop date",
"RunningTime": "Running time",
"Host": "Host"
}
} }

View File

@ -8,5 +8,12 @@
"Sessions": "Sesiuni", "Sessions": "Sesiuni",
"About": "Despre" "About": "Despre"
}, },
"Session": "Sesiune" "Session": {
"Session": "Sesiune",
"Active": "Activă",
"StartDate": "Dată pornire",
"StopDate": "Dată oprire",
"RunningTime": "Timp de rulare",
"Host": "Gazdă"
}
} }

View File

@ -22,11 +22,11 @@ const SessionSummary = ({ session }) => {
<> <>
<Grid container className={classes.miniContainer}> <Grid container className={classes.miniContainer}>
<Grid item xs={12} sm={5} md={5}> <Grid item xs={12} sm={5} md={5}>
{`${t("Session")}: `} {`${t("Session.Session")}: `}
<span className={classes.value}>{session.sessionId}</span> <span className={classes.value}>{session.sessionId}</span>
</Grid> </Grid>
<Grid item xs={12} sm={2} md={2}> <Grid item xs={12} sm={2} md={2}>
{"Active: "} {`${t("Session.Active")}: `}
{session.active ? ( {session.active ? (
<CheckCircleOutlineRounded color="primary" /> <CheckCircleOutlineRounded color="primary" />
) : ( ) : (
@ -34,7 +34,7 @@ const SessionSummary = ({ session }) => {
)} )}
</Grid> </Grid>
<Grid item xs={12} sm={3} md={3}> <Grid item xs={12} sm={3} md={3}>
{"Start date: "} {`${t("Session.StartDate")}: `}
<span className={classes.value}> <span className={classes.value}>
{t("DATE_FORMAT", { {t("DATE_FORMAT", {
date: { value: session.startDate, format: "DD-MM-YYYY HH:mm:ss" } date: { value: session.startDate, format: "DD-MM-YYYY HH:mm:ss" }
@ -43,7 +43,7 @@ const SessionSummary = ({ session }) => {
</Grid> </Grid>
<Grid item xs={12} sm={3} md={3}> <Grid item xs={12} sm={3} md={3}>
{"Stop date: "} {`${t("Session.StopDate")}: `}
<span className={classes.value}> <span className={classes.value}>
{session.stopDate {session.stopDate
? t("DATE_FORMAT", { ? t("DATE_FORMAT", {
@ -57,12 +57,12 @@ const SessionSummary = ({ session }) => {
</Grid> </Grid>
<Grid item xs={12} sm={3} md={3}> <Grid item xs={12} sm={3} md={3}>
{"Running time: "} {`${t("Session.RunningTime")}: `}
<span className={classes.value}>{session.runningTime}</span> <span className={classes.value}>{session.runningTime}</span>
</Grid> </Grid>
<Grid item xs={12} sm={3} md={3}> <Grid item xs={12} sm={3} md={3}>
{"Host: "} {`${t("Session.Host")}: `}
<span className={classes.value}>{session.hostName}</span> <span className={classes.value}>{session.hostName}</span>
</Grid> </Grid>
</Grid> </Grid>