translations

master
Tudor Stanciu 2023-04-04 00:36:47 +03:00
parent 1d81b8ec49
commit 1d58d0f5e7
3 changed files with 14 additions and 4 deletions

View File

@ -41,7 +41,11 @@
"Label": "Profile", "Label": "Profile",
"Hello": "Hi, {{userName}}", "Hello": "Hi, {{userName}}",
"Description": "{{userName}}, authenticated on {{loginDate}}", "Description": "{{userName}}, authenticated on {{loginDate}}",
"OpenPortfolio": "Open portfolio" "OpenPortfolio": "Open portfolio",
"Security": {
"UserGroups": "User groups",
"UserRoles": "User roles"
}
}, },
"Settings": "Settings", "Settings": "Settings",
"Logout": "Logout" "Logout": "Logout"

View File

@ -32,7 +32,11 @@
"Label": "Profil", "Label": "Profil",
"Hello": "Salut, {{userName}}", "Hello": "Salut, {{userName}}",
"Description": "{{userName}}, autentificat pe {{loginDate}}", "Description": "{{userName}}, autentificat pe {{loginDate}}",
"OpenPortfolio": "Deschide portofoliu" "OpenPortfolio": "Deschide portofoliu",
"Security": {
"UserGroups": "Grupuri utilizator",
"UserRoles": "Roluri utilizator"
}
}, },
"Settings": "Setări", "Settings": "Setări",
"Logout": "Deconectare" "Logout": "Deconectare"

View File

@ -3,10 +3,12 @@ import PropTypes from "prop-types";
import { Paper, Grid, Chip, Typography } from "@material-ui/core"; import { Paper, Grid, Chip, Typography } from "@material-ui/core";
import styles from "../styles"; import styles from "../styles";
import { makeStyles } from "@material-ui/core/styles"; import { makeStyles } from "@material-ui/core/styles";
import { useTranslation } from "react-i18next";
const useStyles = makeStyles(styles); const useStyles = makeStyles(styles);
const SecurityComponent = ({ userGroups, userRoles }) => { const SecurityComponent = ({ userGroups, userRoles }) => {
const { t } = useTranslation();
const classes = useStyles(); const classes = useStyles();
return ( return (
<Paper> <Paper>
@ -14,7 +16,7 @@ const SecurityComponent = ({ userGroups, userRoles }) => {
<Grid item xs={12} md={6}> <Grid item xs={12} md={6}>
<div className={classes.paper}> <div className={classes.paper}>
<Typography gutterBottom variant="body1"> <Typography gutterBottom variant="body1">
User groups {t("User.Profile.Security.UserGroups")}
</Typography> </Typography>
<div> <div>
{userGroups.map(g => ( {userGroups.map(g => (
@ -26,7 +28,7 @@ const SecurityComponent = ({ userGroups, userRoles }) => {
<Grid item xs={12} md={6}> <Grid item xs={12} md={6}>
<div className={classes.paper}> <div className={classes.paper}>
<Typography gutterBottom variant="body1"> <Typography gutterBottom variant="body1">
User roles {t("User.Profile.Security.UserRoles")}
</Typography> </Typography>
<div> <div>
{userRoles.map(r => ( {userRoles.map(r => (