Skip to content

Commit

Permalink
Merge pull request #12060 from EKG-Gniebel-Ruebgarten/make-leftmenu-h…
Browse files Browse the repository at this point in the history
…eader-translateable

Make left menu header title and workplace string resources
  • Loading branch information
soupette committed Jan 6, 2022
2 parents 816612a + b427157 commit 828b143
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 11 additions & 3 deletions packages/core/admin/admin/src/components/LeftMenu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,20 @@ const LeftMenu = ({ generalSectionLinks, pluginsSectionLinks }) => {
}
};

const menuTitle = formatMessage({
id: 'app.components.LeftMenu.navbrand.title',
defaultMessage: 'Strapi Dashboard',
});

return (
<MainNav condensed={condensed}>
<NavBrand
workplace="Workplace"
title="Strapi Dashboard"
icon={<img src={menuLogo} alt="Strapi Dashboard" />}
workplace={formatMessage({
id: 'app.components.LeftMenu.navbrand.workplace',
defaultMessage: 'Workplace',
})}
title={menuTitle}
icon={<img src={menuLogo} alt={menuTitle} />}
/>

<Divider />
Expand Down
2 changes: 2 additions & 0 deletions packages/core/admin/admin/src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@
"app.components.LeftMenu.expand": "Expand the navbar",
"app.components.LeftMenu.logout": "Logout",
"app.components.LeftMenu.profile": "Profile",
"app.components.LeftMenu.navbrand.title": "Strapi Dashboard",
"app.components.LeftMenu.navbrand.workplace": "Workplace",
"app.components.LeftMenuFooter.documentation": "Documentation",
"app.components.LeftMenuFooter.help": "Help",
"app.components.LeftMenuFooter.poweredBy": "Powered by ",
Expand Down

0 comments on commit 828b143

Please sign in to comment.