make left menu header title and workplace string resources

This commit is contained in:
p_0g_8mm3_ 2021-12-31 14:44:35 +01:00
parent 6b2e0dc72d
commit a4e2a5fbac
2 changed files with 13 additions and 3 deletions

View File

@ -80,12 +80,20 @@ const LeftMenu = ({ generalSectionLinks, pluginsSectionLinks }) => {
} }
}; };
const menuTitle = formatMessage({
id: 'content-manager.plugin.name',
defaultMessage: 'Strapi Dashboard',
});
return ( return (
<MainNav condensed={condensed}> <MainNav condensed={condensed}>
<NavBrand <NavBrand
workplace="Workplace" workplace={formatMessage({
title="Strapi Dashboard" id: 'content-manager.plugin.name',
icon={<img src={menuLogo} alt="Strapi Dashboard" />} defaultMessage: 'Workplace',
})}
title={menuTitle}
icon={<img src={menuLogo} alt={menuTitle} />}
/> />
<Divider /> <Divider />

View File

@ -239,6 +239,8 @@
"app.component.table.edit": "Edit {target}", "app.component.table.edit": "Edit {target}",
"app.component.table.select.all-entries": "Select all entries", "app.component.table.select.all-entries": "Select all entries",
"app.component.table.select.one-entry": "Select {target}", "app.component.table.select.one-entry": "Select {target}",
"app.components.menuBrand.title": "Strapi Dashboard",
"app.components.menuBrand.workplace": "Workplace",
"app.components.BlockLink.blog": "Blog", "app.components.BlockLink.blog": "Blog",
"app.components.BlockLink.blog.content": "Read the latest news about Strapi and the ecosystem.", "app.components.BlockLink.blog.content": "Read the latest news about Strapi and the ecosystem.",
"app.components.BlockLink.code": "Code examples", "app.components.BlockLink.code": "Code examples",