Skip to content

Commit

Permalink
use translations in page template (elastic#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
orouz authored Jan 3, 2022
1 parent 5f2a626 commit 776fcff
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions x-pack/plugins/cloud_security_posture/common/translations.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

import { i18n } from '@kbn/i18n';

export const CLOUD_SECURITY_POSTURE = i18n.translate('xpack.csp.cloudSecurityPosture', {
defaultMessage: 'Cloud Security Posture',
});
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
KibanaPageTemplateProps,
} from '../../../../../src/plugins/kibana_react/public';
import { navigationLinks } from '../application/navigation';
import { CLOUD_SECURITY_POSTURE } from '../../common/translations';

const activeItemStyle = { fontWeight: 700 };

Expand All @@ -29,7 +30,7 @@ const navItems: NonNullable<KibanaPageTemplateProps['solutionNav']>['items'] = n

const defaultProps: KibanaPageTemplateProps = {
solutionNav: {
name: 'Cloud Security Posture',
name: CLOUD_SECURITY_POSTURE,
items: navItems,
},
restrictWidth: false,
Expand Down

0 comments on commit 776fcff

Please sign in to comment.