diff --git a/public/locales/en/translations.json b/public/locales/en/translations.json index 6e31cfb..0822ee5 100644 --- a/public/locales/en/translations.json +++ b/public/locales/en/translations.json @@ -12,9 +12,10 @@ "English": "English", "Romanian": "Romanian" }, - "Steps": { - "Login": "Login", - "Network": "Network", + "Menu": { + "Dashboard": "Dashboard", + "Machines": "Machines", + "Trash": "Trash", "Settings": "Settings" }, "Login": { diff --git a/public/locales/ro/translations.json b/public/locales/ro/translations.json index 8b25ec5..51c3bd0 100644 --- a/public/locales/ro/translations.json +++ b/public/locales/ro/translations.json @@ -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": { diff --git a/src/components/layout/Sidebar.js b/src/components/layout/Sidebar.js index 4cdb1f2..4c2aea1 100644 --- a/src/components/layout/Sidebar.js +++ b/src/components/layout/Sidebar.js @@ -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 ( { - + { - + @@ -79,7 +81,7 @@ const Sidebar = ({ open, handleDrawerClose }) => { - + { - +