From 812c85602bb612ec7b2c04cedc80b6ebb547cc21 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Wed, 23 Nov 2022 03:53:55 -0500 Subject: [PATCH] [v9.3.x] Internationalization: Translate menu items (#59178) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Internationalization: Translate menu items (#59088) (cherry picked from commit 4a628f18b0ca07d73e8994521c716b5d41fad766) Co-authored-by: Laura Fernández --- 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}
} >