Skip to content

Commit

Permalink
fix i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth committed Mar 23, 2021
1 parent c616133 commit 2e7e930
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,9 @@ export const RestoreSnapshotStepLogistics: React.FunctionComponent<StepProps> =
templates with the same name. Also restores persistent settings and all system indices."
/>

{/* Only display callout if include global state is enabled and the snapshot was created by ES 7.12.0+
{/* Only display callout if include_global_state is enabled and the snapshot was created by ES 7.12+
* Note: Once we support features states in the UI, we will also need to add a check here for that
* See https://github.com/elastic/kibana/issues/95128 more details
*/}
{includeGlobalState && semverGt(version, '7.12.0') && (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@ export const SystemIndicesOverwrittenCallOut: FunctionComponent = () => {
size="s"
>
<FormattedMessage
id="xpack.snapshotRestore.restoreForm.stepLogistics.systemIndicesDescription"
defaultMessage={`When this snapshot is restored, system indices will be overwritten with data from the snapshot. {learnMoreLink}`}
id="xpack.snapshotRestore.restoreForm.stepLogistics.systemIndicesCallOut.description"
defaultMessage="When this snapshot is restored, system indices will be overwritten with data from the snapshot. {learnMoreLink}"
values={{
includeGlobalStateField: <EuiCode>include_global_state</EuiCode>,
booleanValue: <EuiCode>false</EuiCode>,
learnMoreLink: (
<EuiLink target="_blank" href={docLinks.links.snapshotRestore.restoreSnapshotApi}>
{i18n.translate(
'xpack.snapshotRestore.restoreForm.dataStreamsWarningCallOut.body.learnMoreLink',
'xpack.snapshotRestore.restoreForm.stepLogistics.systemIndicesCallOut.learnMoreLink',
{ defaultMessage: 'Learn more' }
)}
</EuiLink>
Expand Down

0 comments on commit 2e7e930

Please sign in to comment.