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 (
<MainNav condensed={condensed}>
<NavBrand
workplace="Workplace"
title="Strapi Dashboard"
icon={<img src={menuLogo} alt="Strapi Dashboard" />}
workplace={formatMessage({
id: 'content-manager.plugin.name',
defaultMessage: 'Workplace',
})}
title={menuTitle}
icon={<img src={menuLogo} alt={menuTitle} />}
/>
<Divider />

View File

@ -239,6 +239,8 @@
"app.component.table.edit": "Edit {target}",
"app.component.table.select.all-entries": "Select all entries",
"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.content": "Read the latest news about Strapi and the ecosystem.",
"app.components.BlockLink.code": "Code examples",