mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Translate global navigation bar component (#23993)
Translate global navigation bar component
This commit is contained in:
parent
a39238568a
commit
039ced34f0
1 changed files with 7 additions and 3 deletions
|
@ -27,7 +27,7 @@ import { uiModules } from '../../../modules';
|
|||
|
||||
const module = uiModules.get('kibana');
|
||||
|
||||
module.directive('globalNav', (globalNavState, chrome) => {
|
||||
module.directive('globalNav', (globalNavState, chrome, i18n) => {
|
||||
return {
|
||||
restrict: 'E',
|
||||
replace: true,
|
||||
|
@ -46,8 +46,12 @@ module.directive('globalNav', (globalNavState, chrome) => {
|
|||
scope.isGlobalNavOpen = isOpen;
|
||||
scope.globalNavToggleButton = {
|
||||
classes: isOpen ? 'global-nav-link--close' : undefined,
|
||||
title: isOpen ? 'Collapse' : 'Expand',
|
||||
tooltipContent: isOpen ? 'Collapse side bar' : 'Expand side bar',
|
||||
title: isOpen ?
|
||||
i18n('common.ui.chrome.globalNav.navToggleButtonCollapseTitle', { defaultMessage: 'Collapse' })
|
||||
: i18n('common.ui.chrome.globalNav.navToggleButtonExpandTitle', { defaultMessage: 'Expand' }),
|
||||
tooltipContent: isOpen ?
|
||||
i18n('common.ui.chrome.globalNav.navToggleButtonCollapseTooltip', { defaultMessage: 'Collapse side bar' })
|
||||
: i18n('common.ui.chrome.globalNav.navToggleButtonExpandTooltip', { defaultMessage: 'Expand side bar' }),
|
||||
};
|
||||
|
||||
// Notify visualizations, e.g. the dashboard, that they should re-render.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue