fix sidemenu translations

This commit is contained in:
Michael Schramm 2020-06-09 18:30:12 +02:00
parent d6132170b3
commit 0854e63d4f
3 changed files with 10 additions and 9 deletions

View File

@ -15,24 +15,24 @@ export interface SideMenuElement {
export const sideMenu: SideMenuElement[] = [ export const sideMenu: SideMenuElement[] = [
{ {
key: 'home', key: 'home',
name: 'Home', name: 'admin:home',
href: '/admin', href: '/admin',
icon: <HomeOutlined />, icon: <HomeOutlined />,
}, },
{ {
key: 'profile', key: 'profile',
name: 'Profile', name: 'admin:profile',
href: '/admin/profile', href: '/admin/profile',
icon: <UserOutlined />, icon: <UserOutlined />,
}, },
{ {
key: 'public', key: 'public',
name: 'Forms', name: 'admin:forms',
group: true, group: true,
items: [ items: [
{ {
key: 'forms', key: 'forms',
name: 'Forms', name: 'admin:forms',
href: '/admin/forms', href: '/admin/forms',
icon: <MessageOutlined />, icon: <MessageOutlined />,
}, },
@ -40,12 +40,12 @@ export const sideMenu: SideMenuElement[] = [
}, },
{ {
key: 'administration', key: 'administration',
name: 'Administration', name: 'admin:administration',
group: true, group: true,
items: [ items: [
{ {
key: 'users', key: 'users',
name: 'Users', name: 'admin:users',
href: '/admin/users', href: '/admin/users',
icon: <TeamOutlined />, icon: <TeamOutlined />,
}, },

View File

@ -79,7 +79,7 @@ const Structure: FunctionComponent<Props> = (props) => {
}} }}
> >
{element.icon} {element.icon}
{element.name} {t(element.name)}
</div> </div>
} }
> >
@ -94,7 +94,7 @@ const Structure: FunctionComponent<Props> = (props) => {
title={ title={
<span> <span>
{element.icon} {element.icon}
{element.name} {t(element.name)}
</span> </span>
} }
> >
@ -113,7 +113,7 @@ const Structure: FunctionComponent<Props> = (props) => {
key={element.key} key={element.key}
> >
{element.icon} {element.icon}
{element.name} {t(element.name)}
</Menu.Item> </Menu.Item>
) )
} }

View File

@ -2,6 +2,7 @@
"forms": "Forms", "forms": "Forms",
"home": "Home", "home": "Home",
"profile": "Profile", "profile": "Profile",
"administration": "Administration",
"submissions": "Submissions", "submissions": "Submissions",
"username": "Username", "username": "Username",
"users": "Users" "users": "Users"