File tree Expand file tree Collapse file tree
x-pack/plugins/endpoint/public/applications/endpoint/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 */
66
77import React from 'react' ;
8+ import { i18n } from '@kbn/i18n' ;
89import styled from 'styled-components' ;
910import { EuiTabs , EuiTab } from '@elastic/eui' ;
1011import { useHistory , useLocation } from 'react-router-dom' ;
@@ -18,22 +19,30 @@ export interface NavTabs {
1819export const navTabs : NavTabs [ ] = [
1920 {
2021 id : 'home' ,
21- name : 'Home' ,
22+ name : i18n . translate ( 'xpack.endpoint.headerNav.home' , {
23+ defaultMessage : 'Home' ,
24+ } ) ,
2225 href : '/' ,
2326 } ,
2427 {
2528 id : 'management' ,
26- name : 'Management' ,
29+ name : i18n . translate ( 'xpack.endpoint.headerNav.management' , {
30+ defaultMessage : 'Management' ,
31+ } ) ,
2732 href : '/management' ,
2833 } ,
2934 {
3035 id : 'alerts' ,
31- name : 'Alerts' ,
36+ name : i18n . translate ( 'xpack.endpoint.headerNav.alerts' , {
37+ defaultMessage : 'Alerts' ,
38+ } ) ,
3239 href : '/alerts' ,
3340 } ,
3441 {
3542 id : 'policies' ,
36- name : 'Policies' ,
43+ name : i18n . translate ( 'xpack.endpoint.headerNav.policies' , {
44+ defaultMessage : 'Policies' ,
45+ } ) ,
3746 href : '/policy' ,
3847 } ,
3948] ;
You can’t perform that action at this time.
0 commit comments