From 39216f85d3038c25864a84a6406c9441c7ed8d8b Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Sat, 4 Mar 2023 22:06:55 +0200 Subject: [PATCH] translations --- public/locales/en/translations.json | 7 ++++--- public/locales/ro/translations.json | 7 ++++--- src/components/layout/Sidebar.js | 10 ++++++---- 3 files changed, 14 insertions(+), 10 deletions(-) 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 }) => { - + { - +