menu translations

master
Tudor Stanciu 2021-08-03 01:09:30 +03:00
parent 7e9bea6c42
commit 7464429a69
5 changed files with 43 additions and 16 deletions

2
notes/todo.txt Normal file
View File

@ -0,0 +1,2 @@
- schimbare limba din setari
- salvare configurari - pozitie toast

View File

@ -14,7 +14,16 @@
}, },
"Menu": { "Menu": {
"Dashboard": "Dashboard", "Dashboard": "Dashboard",
"Resources": "Resources" "Resources": "Resources",
"System": "System",
"Admin": "Admin",
"Settings": "Settings",
"Health": "Health",
"Community": "Community",
"Library": "Library",
"Support": "Support",
"FAQ": "FAQ",
"Template": "Template"
}, },
"Login": { "Login": {
"Username": "Username", "Username": "Username",

View File

@ -5,7 +5,16 @@
}, },
"Menu": { "Menu": {
"Dashboard": "Dashboard", "Dashboard": "Dashboard",
"Resources": "Resurse" "Resources": "Resurse",
"System": "Sistem",
"Admin": "Admin",
"Settings": "Setari",
"Health": "Sănătate",
"Community": "Comunitate",
"Library": "Bibliotecă",
"Support": "Suport",
"FAQ": "FAQ",
"Template": "Șablon"
}, },
"Login": { "Login": {
"Username": "Utilizator", "Username": "Utilizator",

View File

@ -156,7 +156,7 @@ export default function SidebarLink({
<List component="div" disablePadding> <List component="div" disablePadding>
{children.map((childrenLink) => ( {children.map((childrenLink) => (
<SidebarLink <SidebarLink
key={childrenLink && childrenLink.link} key={childrenLink && (childrenLink.id || childrenLink.link)}
location={location} location={location}
isSidebarOpened={isSidebarOpened} isSidebarOpened={isSidebarOpened}
classes={classes} classes={classes}

View File

@ -10,41 +10,48 @@ import {
Image as ImageIcon, Image as ImageIcon,
Build as BuildIcon, Build as BuildIcon,
Settings as SettingsIcon, Settings as SettingsIcon,
NetworkCheck as NetworkCheckIcon NetworkCheck as NetworkCheckIcon,
Vibration as VibrationIcon
} from "@material-ui/icons"; } from "@material-ui/icons";
import Dot from "./components/Dot"; import Dot from "./components/Dot";
let menu = [ let menu = [
{ {
id: 0, id: 0,
label: "Dashboard", label: "Menu.Dashboard",
link: "/dashboard", link: "/dashboard",
icon: <DashboardIcon /> icon: <DashboardIcon />
}, },
{ {
id: 1, id: 1,
label: "Resources", label: "Menu.Resources",
link: "/resources", link: "/resources",
icon: <ImageIcon /> icon: <ImageIcon />
}, },
{ id: 2, type: "divider" }, { id: 2, type: "divider" },
{ id: 3, type: "title", label: "System" }, { id: 3, type: "title", label: "Menu.System" },
{ {
id: 4, id: 4,
label: "Admin", label: "Menu.Admin",
link: "/admin", link: "/admin",
icon: <BuildIcon /> icon: <BuildIcon />
}, },
{ {
id: 5, id: 5,
label: "Settings", label: "Menu.Settings",
link: "/settings", link: "/settings",
icon: <SettingsIcon />, icon: <SettingsIcon />,
children: [ children: [
{ {
id: 50, id: 50,
label: "Notifications", label: "Menu.Appearance",
link: "/appearance",
icon: <VibrationIcon />
},
{
id: 51,
label: "Menu.Notifications",
link: "/notifications", link: "/notifications",
icon: <NotificationsIcon /> icon: <NotificationsIcon />
} }
@ -52,27 +59,27 @@ let menu = [
}, },
{ {
id: 6, id: 6,
label: "Health", label: "Menu.Health",
link: "/health", link: "/health",
icon: <NetworkCheckIcon /> icon: <NetworkCheckIcon />
}, },
{ id: 7, type: "divider" }, { id: 7, type: "divider" },
{ id: 8, type: "title", label: "Community" }, { id: 8, type: "title", label: "Menu.Community" },
{ {
id: 9, id: 9,
label: "Library", label: "Menu.Library",
link: "https://dev.azure.com/tstanciu94/CDN", link: "https://dev.azure.com/tstanciu94/CDN",
icon: <LibraryIcon /> icon: <LibraryIcon />
}, },
{ {
id: 10, id: 10,
label: "Support", label: "Menu.Support",
link: "https://toodle.ddns.net/forum", link: "https://toodle.ddns.net/forum",
icon: <SupportIcon /> icon: <SupportIcon />
}, },
{ {
id: 11, id: 11,
label: "FAQ", label: "Menu.FAQ",
link: "https://toodle.ddns.net/forum", link: "https://toodle.ddns.net/forum",
icon: <FAQIcon /> icon: <FAQIcon />
} }
@ -86,7 +93,7 @@ if (enableTemplateContent) {
{ id: 12, type: "divider" }, { id: 12, type: "divider" },
{ {
id: 13, id: 13,
label: "Template", label: "Menu.Template",
children: [ children: [
{ {
id: 14, id: 14,