From 4a628f18b0ca07d73e8994521c716b5d41fad766 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Fern=C3=A1ndez?= Date: Wed, 23 Nov 2022 09:34:53 +0100 Subject: [PATCH] Internationalization: Translate menu items (#59088) --- public/app/core/components/NavBar/NavBarMenu.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/app/core/components/NavBar/NavBarMenu.tsx b/public/app/core/components/NavBar/NavBarMenu.tsx index 2a93cd7707e..ce3e58679c2 100644 --- a/public/app/core/components/NavBar/NavBarMenu.tsx +++ b/public/app/core/components/NavBar/NavBarMenu.tsx @@ -256,7 +256,7 @@ export function NavItem({ }} styleOverrides={styles.item} target={childLink.target} - text={childLink.text} + text={getNavTitle(childLink.id) ?? childLink.text} url={childLink.url} isMobile={true} /> @@ -297,7 +297,7 @@ export function NavItem({ - {link.text} + {getNavTitle(link.id) ?? link.text} @@ -398,7 +398,7 @@ function CollapsibleNavItem({ contentClassName={styles.collapseContent} label={
- {link.text} + {getNavTitle(link.id) ?? link.text}
} >