translations
parent
49d2fa11bd
commit
39216f85d3
|
@ -12,9 +12,10 @@
|
|||
"English": "English",
|
||||
"Romanian": "Romanian"
|
||||
},
|
||||
"Steps": {
|
||||
"Login": "Login",
|
||||
"Network": "Network",
|
||||
"Menu": {
|
||||
"Dashboard": "Dashboard",
|
||||
"Machines": "Machines",
|
||||
"Trash": "Trash",
|
||||
"Settings": "Settings"
|
||||
},
|
||||
"Login": {
|
||||
|
|
|
@ -3,9 +3,10 @@
|
|||
"English": "Engleză",
|
||||
"Romanian": "Română"
|
||||
},
|
||||
"Steps": {
|
||||
"Login": "Autentificare",
|
||||
"Network": "Rețea",
|
||||
"Menu": {
|
||||
"Dashboard": "Bord",
|
||||
"Machines": "Mașini",
|
||||
"Trash": "Gunoi",
|
||||
"Settings": "Setări"
|
||||
},
|
||||
"Login": {
|
||||
|
|
|
@ -18,6 +18,7 @@ import DnsIcon from "@material-ui/icons/Dns";
|
|||
import SettingsIcon from "@material-ui/icons/Settings";
|
||||
import DashboardIcon from "@material-ui/icons/Dashboard";
|
||||
import { useHistory } from "react-router-dom";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import styles from "./styles";
|
||||
|
||||
const useStyles = makeStyles(styles);
|
||||
|
@ -26,6 +27,7 @@ const Sidebar = ({ open, handleDrawerClose }) => {
|
|||
const classes = useStyles();
|
||||
const theme = useTheme();
|
||||
const history = useHistory();
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<Drawer
|
||||
|
@ -60,7 +62,7 @@ const Sidebar = ({ open, handleDrawerClose }) => {
|
|||
<ListItemIcon>
|
||||
<DashboardIcon />
|
||||
</ListItemIcon>
|
||||
<ListItemText primary={"Dashboard"} />
|
||||
<ListItemText primary={t("Menu.Dashboard")} />
|
||||
</ListItem>
|
||||
<ListItem
|
||||
button
|
||||
|
@ -70,7 +72,7 @@ const Sidebar = ({ open, handleDrawerClose }) => {
|
|||
<ListItemIcon>
|
||||
<DnsIcon />
|
||||
</ListItemIcon>
|
||||
<ListItemText primary={"Machines"} />
|
||||
<ListItemText primary={t("Menu.Machines")} />
|
||||
</ListItem>
|
||||
</List>
|
||||
<Divider />
|
||||
|
@ -79,7 +81,7 @@ const Sidebar = ({ open, handleDrawerClose }) => {
|
|||
<ListItemIcon>
|
||||
<DeleteIcon />
|
||||
</ListItemIcon>
|
||||
<ListItemText primary={"Trash"} />
|
||||
<ListItemText primary={t("Menu.Trash")} />
|
||||
</ListItem>
|
||||
<ListItem
|
||||
button
|
||||
|
@ -89,7 +91,7 @@ const Sidebar = ({ open, handleDrawerClose }) => {
|
|||
<ListItemIcon>
|
||||
<SettingsIcon />
|
||||
</ListItemIcon>
|
||||
<ListItemText primary={"Settings"} />
|
||||
<ListItemText primary={t("Menu.Settings")} />
|
||||
</ListItem>
|
||||
</List>
|
||||
</Drawer>
|
||||
|
|
Loading…
Reference in New Issue