Skip to content

Commit

Permalink
Internationalize rollup prompt callout.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Apr 23, 2020
1 parent 649b172 commit bcb526f
Showing 1 changed file with 20 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,34 @@
*/

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

import { EuiCallOut } from '@elastic/eui';

export const RollupPrompt = () => (
<EuiCallOut color="warning" iconType="help" title="Beta feature">
<p>
Kibana&apos;s support for rollup index patterns is in beta. You might encounter issues using
these patterns in saved searches, visualizations, and dashboards. They are not supported in
some advanced features, such as Timelion, and Machine Learning.
{i18n.translate(
'xpack.rollupJobs.editRollupIndexPattern.rollupPrompt.betaCalloutParagraph1Text',
{
defaultMessage:
"Kibana's support for rollup index patterns is in beta. You might encounter issues using " +
'these patterns in saved searches, visualizations, and dashboards. They are not supported in ' +
'some advanced features, such as Timelion, and Machine Learning.',
}
)}
</p>
<p>
You can match a rollup index pattern against one rollup index and zero or more regular
indices. A rollup index pattern has limited metrics, fields, intervals, and aggregations. A
rollup index is limited to indices that have one job configuration, or multiple jobs with
compatible configurations.
{i18n.translate(
'xpack.rollupJobs.editRollupIndexPattern.rollupPrompt.betaCalloutParagraph2Text',
{
defaultMessage:
'You can match a rollup index pattern against one rollup index and zero or more regular ' +
'indices. A rollup index pattern has limited metrics, fields, intervals, and aggregations. A ' +
'rollup index is limited to indices that have one job configuration, or multiple jobs with ' +
'compatible configurations.',
}
)}
</p>
</EuiCallOut>
);

0 comments on commit bcb526f

Please sign in to comment.