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