Skip to content

Commit

Permalink
Merge pull request #7204 from h-kataria/menus_i18n_fix
Browse files Browse the repository at this point in the history
Fixed to translate menu titles in Navbar
  • Loading branch information
mzazrivec committed Jul 16, 2020
2 parents 938eadb + 78ad25b commit e96c5eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/javascript/menu/first-level.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const MenuItem = ({ active, href, icon, id, title, type }) => (
renderIcon={carbonizeIcon(icon)}
{...linkProps({ type, href, id })}
>
{title}
{__(title)}
</SideNavLink>
);

Expand All @@ -52,7 +52,7 @@ const MenuSection = ({ active, hover, icon, id, items, title, setSection }) => (
e.stopPropagation();
}}
renderIcon={carbonizeIcon(icon)}
title={title}
title={__(title)}
/>
);

Expand Down
4 changes: 2 additions & 2 deletions app/javascript/menu/second-level.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const MenuItem = ({ active, href, id, title, type, hideSecondary }) => (
isActive={active}
{...linkProps({ type, href, id, hideSecondary })}
>
{title}
{__(title)}
</SideNavMenuItem>
);

Expand All @@ -39,7 +39,7 @@ const MenuSection = ({ active, id, items, title, hideSecondary }) => (
id={itemId(id, true)}
isActive={active}
defaultExpanded={active} // autoexpand active section
title={title}
title={__(title)}
>
{mapItems(items, hideSecondary)}
</SideNavMenu>
Expand Down

0 comments on commit e96c5eb

Please sign in to comment.