diff --git a/notes/todo.txt b/notes/todo.txt new file mode 100644 index 0000000..5bbcaff --- /dev/null +++ b/notes/todo.txt @@ -0,0 +1,2 @@ +- schimbare limba din setari +- salvare configurari - pozitie toast \ No newline at end of file diff --git a/public/locales/en/translations.json b/public/locales/en/translations.json index cbebf2d..3383d6c 100644 --- a/public/locales/en/translations.json +++ b/public/locales/en/translations.json @@ -14,7 +14,16 @@ }, "Menu": { "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": { "Username": "Username", diff --git a/public/locales/ro/translations.json b/public/locales/ro/translations.json index 17dae68..7ba7017 100644 --- a/public/locales/ro/translations.json +++ b/public/locales/ro/translations.json @@ -5,7 +5,16 @@ }, "Menu": { "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": { "Username": "Utilizator", diff --git a/src/components/Sidebar/components/SidebarLink/SidebarLink.js b/src/components/Sidebar/components/SidebarLink/SidebarLink.js index 58ae34f..03cd3e7 100644 --- a/src/components/Sidebar/components/SidebarLink/SidebarLink.js +++ b/src/components/Sidebar/components/SidebarLink/SidebarLink.js @@ -156,7 +156,7 @@ export default function SidebarLink({ {children.map((childrenLink) => ( }, { id: 1, - label: "Resources", + label: "Menu.Resources", link: "/resources", icon: }, { id: 2, type: "divider" }, - { id: 3, type: "title", label: "System" }, + { id: 3, type: "title", label: "Menu.System" }, { id: 4, - label: "Admin", + label: "Menu.Admin", link: "/admin", icon: }, { id: 5, - label: "Settings", + label: "Menu.Settings", link: "/settings", icon: , children: [ { id: 50, - label: "Notifications", + label: "Menu.Appearance", + link: "/appearance", + icon: + }, + { + id: 51, + label: "Menu.Notifications", link: "/notifications", icon: } @@ -52,27 +59,27 @@ let menu = [ }, { id: 6, - label: "Health", + label: "Menu.Health", link: "/health", icon: }, { id: 7, type: "divider" }, - { id: 8, type: "title", label: "Community" }, + { id: 8, type: "title", label: "Menu.Community" }, { id: 9, - label: "Library", + label: "Menu.Library", link: "https://dev.azure.com/tstanciu94/CDN", icon: }, { id: 10, - label: "Support", + label: "Menu.Support", link: "https://toodle.ddns.net/forum", icon: }, { id: 11, - label: "FAQ", + label: "Menu.FAQ", link: "https://toodle.ddns.net/forum", icon: } @@ -86,7 +93,7 @@ if (enableTemplateContent) { { id: 12, type: "divider" }, { id: 13, - label: "Template", + label: "Menu.Template", children: [ { id: 14,