Skip to content

Commit d2a4457

Browse files
committed
i18n fixes
1 parent 5480bd7 commit d2a4457

7 files changed

Lines changed: 233 additions & 242 deletions

File tree

x-pack/plugins/security_solution/public/management/components/management_empty_state.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,14 @@ const EndpointsEmptyState = React.memo<{
126126
const policySteps = useMemo(
127127
() => [
128128
{
129-
title: i18n.translate('xpack.securitySolution.endpoint.hostList.stepOneTitle', {
129+
title: i18n.translate('xpack.securitySolution.endpoint.list.stepOneTitle', {
130130
defaultMessage: 'Select the integration you want to use',
131131
}),
132132
children: (
133133
<>
134134
<EuiText color="subdued" size="m" grow={false}>
135135
<FormattedMessage
136-
id="xpack.securitySolution.endpoint.hostList.stepOne"
136+
id="xpack.securitySolution.endpoint.list.stepOne"
137137
defaultMessage="Select from existing integrations. This can be changed later."
138138
/>
139139
</EuiText>
@@ -151,15 +151,15 @@ const EndpointsEmptyState = React.memo<{
151151
return loading ? (
152152
<EuiSelectableMessage>
153153
<FormattedMessage
154-
id="xpack.securitySolution.endpoint.hostList.loadingPolicies"
154+
id="xpack.securitySolution.endpoint.list.loadingPolicies"
155155
defaultMessage="Loading integrations"
156156
/>
157157
</EuiSelectableMessage>
158158
) : selectionOptions.length ? (
159159
list
160160
) : (
161161
<FormattedMessage
162-
id="xpack.securitySolution.endpoint.hostList.noPolicies"
162+
id="xpack.securitySolution.endpoint.list.noPolicies"
163163
defaultMessage="There are no integrations."
164164
/>
165165
);
@@ -169,7 +169,7 @@ const EndpointsEmptyState = React.memo<{
169169
),
170170
},
171171
{
172-
title: i18n.translate('xpack.securitySolution.endpoint.hostList.stepTwoTitle', {
172+
title: i18n.translate('xpack.securitySolution.endpoint.list.stepTwoTitle', {
173173
defaultMessage:
174174
'Enroll your agents enabled with Endpoint Security through Ingest Manager',
175175
}),
@@ -179,7 +179,7 @@ const EndpointsEmptyState = React.memo<{
179179
<EuiFlexItem>
180180
<EuiText color="subdued" size="m" grow={false}>
181181
<FormattedMessage
182-
id="xpack.securitySolution.endpoint.hostList.stepTwo"
182+
id="xpack.securitySolution.endpoint.list.stepTwo"
183183
defaultMessage="You’ll be provided with the necessary commands to get started."
184184
/>
185185
</EuiText>
@@ -211,13 +211,13 @@ const EndpointsEmptyState = React.memo<{
211211
steps={policySteps}
212212
headerComponent={
213213
<FormattedMessage
214-
id="xpack.securitySolution.endpoint.hostList.noEndpointsPrompt"
214+
id="xpack.securitySolution.endpoint.list.noEndpointsPrompt"
215215
defaultMessage="Next step: Enroll an Agent with Elastic Endpoint Security"
216216
/>
217217
}
218218
bodyComponent={
219219
<FormattedMessage
220-
id="xpack.securitySolution.endpoint.hostList.noEndpointsInstructions"
220+
id="xpack.securitySolution.endpoint.list.noEndpointsInstructions"
221221
defaultMessage="You’ve added the Endpoint Security integration. Now enroll your agents using the steps below."
222222
/>
223223
}

x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/details/endpoint_details.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ export const EndpointDetails = memo(({ details }: { details: HostMetadata }) =>
6767
const detailsResultsUpper = useMemo(() => {
6868
return [
6969
{
70-
title: i18n.translate('xpack.securitySolution.endpoint.host.details.os', {
70+
title: i18n.translate('xpack.securitySolution.endpoint.details.os', {
7171
defaultMessage: 'OS',
7272
}),
7373
description: details.host.os.full,
7474
},
7575
{
76-
title: i18n.translate('xpack.securitySolution.endpoint.host.details.lastSeen', {
76+
title: i18n.translate('xpack.securitySolution.endpoint.details.lastSeen', {
7777
defaultMessage: 'Last Seen',
7878
}),
7979
description: <FormattedDateAndTime date={new Date(details['@timestamp'])} />,
@@ -124,7 +124,7 @@ export const EndpointDetails = memo(({ details }: { details: HostMetadata }) =>
124124
const detailsResultsPolicy = useMemo(() => {
125125
return [
126126
{
127-
title: i18n.translate('xpack.securitySolution.endpoint.host.details.policy', {
127+
title: i18n.translate('xpack.securitySolution.endpoint.details.policy', {
128128
defaultMessage: 'Integration',
129129
}),
130130
description: (
@@ -139,7 +139,7 @@ export const EndpointDetails = memo(({ details }: { details: HostMetadata }) =>
139139
),
140140
},
141141
{
142-
title: i18n.translate('xpack.securitySolution.endpoint.host.details.policyStatus', {
142+
title: i18n.translate('xpack.securitySolution.endpoint.details.policyStatus', {
143143
defaultMessage: 'Configuration response',
144144
}),
145145
description: (
@@ -155,7 +155,7 @@ export const EndpointDetails = memo(({ details }: { details: HostMetadata }) =>
155155
>
156156
<EuiText size="m">
157157
<FormattedMessage
158-
id="xpack.securitySolution.endpoint.host.details.policyStatusValue"
158+
id="xpack.securitySolution.endpoint.details.policyStatusValue"
159159
defaultMessage="{policyStatus, select, success {Success} warning {Warning} failure {Failed} other {Unknown}}"
160160
values={{ policyStatus }}
161161
/>
@@ -169,7 +169,7 @@ export const EndpointDetails = memo(({ details }: { details: HostMetadata }) =>
169169
const detailsResultsLower = useMemo(() => {
170170
return [
171171
{
172-
title: i18n.translate('xpack.securitySolution.endpoint.host.details.ipAddress', {
172+
title: i18n.translate('xpack.securitySolution.endpoint.details.ipAddress', {
173173
defaultMessage: 'IP Address',
174174
}),
175175
description: (
@@ -181,13 +181,13 @@ export const EndpointDetails = memo(({ details }: { details: HostMetadata }) =>
181181
),
182182
},
183183
{
184-
title: i18n.translate('xpack.securitySolution.endpoint.host.details.hostname', {
184+
title: i18n.translate('xpack.securitySolution.endpoint.details.hostname', {
185185
defaultMessage: 'Hostname',
186186
}),
187187
description: details.host.hostname,
188188
},
189189
{
190-
title: i18n.translate('xpack.securitySolution.endpoint.host.details.endpointVersion', {
190+
title: i18n.translate('xpack.securitySolution.endpoint.details.endpointVersion', {
191191
defaultMessage: 'Endpoint Version',
192192
}),
193193
description: details.agent.version,
@@ -218,7 +218,7 @@ export const EndpointDetails = memo(({ details }: { details: HostMetadata }) =>
218218
>
219219
<EuiIcon type="savedObjectsApp" className="linkToAppIcon" />
220220
<FormattedMessage
221-
id="xpack.securitySolution.endpoint.host.details.linkToIngestTitle"
221+
id="xpack.securitySolution.endpoint.details.linkToIngestTitle"
222222
defaultMessage="Reassign Configuration"
223223
/>
224224
<EuiIcon type="popout" className="linkToAppPopoutIcon" />

x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/view/details/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ export const EndpointDetailsFlyout = memo(() => {
6262
useEffect(() => {
6363
if (error !== undefined) {
6464
toasts.addDanger({
65-
title: i18n.translate('xpack.securitySolution.endpoint.host.details.errorTitle', {
65+
title: i18n.translate('xpack.securitySolution.endpoint.details.errorTitle', {
6666
defaultMessage: 'Could not find host',
6767
}),
68-
text: i18n.translate('xpack.securitySolution.endpoint.host.details.errorBody', {
68+
text: i18n.translate('xpack.securitySolution.endpoint.details.errorBody', {
6969
defaultMessage: 'Please exit the flyout and select an available host.',
7070
}),
7171
});
@@ -140,7 +140,7 @@ const PolicyResponseFlyoutPanel = memo<{
140140
const backToDetailsClickHandler = useNavigateByRouterEventHandler(detailsRoutePath);
141141
const backButtonProp = useMemo((): FlyoutSubHeaderProps['backButton'] => {
142142
return {
143-
title: i18n.translate('xpack.securitySolution.endpoint.host.policyResponse.backLinkTitle', {
143+
title: i18n.translate('xpack.securitySolution.endpoint.policyResponse.backLinkTitle', {
144144
defaultMessage: 'Endpoint Details',
145145
}),
146146
href: detailsUri,
@@ -158,7 +158,7 @@ const PolicyResponseFlyoutPanel = memo<{
158158
<EuiText data-test-subj="endpointDetailsPolicyResponseFlyoutTitle">
159159
<h4>
160160
<FormattedMessage
161-
id="xpack.securitySolution.endpoint.host.policyResponse.title"
161+
id="xpack.securitySolution.endpoint.policyResponse.title"
162162
defaultMessage="Configuration Response"
163163
/>
164164
</h4>
@@ -167,7 +167,7 @@ const PolicyResponseFlyoutPanel = memo<{
167167
<EuiEmptyPrompt
168168
title={
169169
<FormattedMessage
170-
id="xpack.securitySolution.endpoint.hostDetails.noPolicyResponse"
170+
id="xpack.securitySolution.endpoint.details.noPolicyResponse"
171171
defaultMessage="No configuration response available"
172172
/>
173173
}

0 commit comments

Comments
 (0)