translations

master
Tudor Stanciu 2023-03-04 22:06:55 +02:00
parent 49d2fa11bd
commit 39216f85d3
3 changed files with 14 additions and 10 deletions

View File

@ -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": {

View File

@ -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": {

View File

@ -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>