Skip to content

Commit 7d2d58a

Browse files
committed
i18n for nav names
1 parent 625635c commit 7d2d58a

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

  • x-pack/plugins/endpoint/public/applications/endpoint/components

x-pack/plugins/endpoint/public/applications/endpoint/components/header_nav.tsx

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
import React from 'react';
8+
import { i18n } from '@kbn/i18n';
89
import styled from 'styled-components';
910
import { EuiTabs, EuiTab } from '@elastic/eui';
1011
import { useHistory, useLocation } from 'react-router-dom';
@@ -18,22 +19,30 @@ export interface NavTabs {
1819
export 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
];

0 commit comments

Comments
 (0)