Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[i18n] Translate ML - components - rule editor #28262

Merged
merged 102 commits into from
Jan 17, 2019
Merged
Show file tree
Hide file tree
Changes from 86 commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
c7ec189
Merge pull request #1 from elastic/master
Nox911 Sep 24, 2018
fa01b88
Merge pull request #2 from elastic/master
Nox911 Sep 27, 2018
70f6c7e
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Sep 27, 2018
68587a0
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Sep 28, 2018
42aa7d3
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 2, 2018
efeaefe
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 2, 2018
8a054ed
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 8, 2018
b0d1660
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 16, 2018
62b6ad1
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 17, 2018
acbad4b
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 18, 2018
a850650
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 22, 2018
0a200ce
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 25, 2018
b2a8244
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 29, 2018
b4b979e
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 30, 2018
d349a4f
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Oct 31, 2018
ae285b9
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 2, 2018
3051641
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 5, 2018
6231971
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 8, 2018
f86a3d4
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 9, 2018
cf813c7
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 13, 2018
1aba03f
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 14, 2018
491009b
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 15, 2018
e243126
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 22, 2018
e74bd61
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 22, 2018
8bc5ffa
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 23, 2018
5787937
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 23, 2018
f17fa1e
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 24, 2018
c63b0a6
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 26, 2018
ed62b5b
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 26, 2018
df4fab4
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 26, 2018
46d284a
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 27, 2018
d1fd49e
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 29, 2018
ec1ad76
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 29, 2018
6ebd934
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Nov 30, 2018
332d867
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 3, 2018
4a99411
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 3, 2018
4cdec42
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 4, 2018
5d44df7
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 4, 2018
c6e63aa
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 4, 2018
8182d1f
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 4, 2018
aefb90f
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 5, 2018
e4e7120
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 6, 2018
a9a6043
Merge branch 'master' of https://github.com/elastic/kibana
Dec 7, 2018
9d247e6
Merge branch 'master' of https://github.com/elastic/kibana
Dec 10, 2018
bd707af
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 11, 2018
71fb60d
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 12, 2018
4d95475
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 13, 2018
62e824d
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 13, 2018
4463796
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 14, 2018
876e358
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 14, 2018
231a859
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 14, 2018
2af5dc9
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 14, 2018
8a24575
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 14, 2018
aa0b988
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 14, 2018
1bd465e
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 14, 2018
9c43f68
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 14, 2018
45ea012
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 17, 2018
b20b0be
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 19, 2018
279bfed
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 19, 2018
d4f3e72
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 19, 2018
917da91
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 21, 2018
6beb6fe
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 26, 2018
a1bcdb5
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Dec 28, 2018
f4c8246
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 2, 2019
28c57ae
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 3, 2019
4b5e283
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 3, 2019
38b6a15
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 3, 2019
5f5ee45
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 3, 2019
f905f69
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 3, 2019
f1b48ce
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 4, 2019
e0d4ace
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 4, 2019
4eaa66e
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 4, 2019
fbc9ba5
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 4, 2019
accf399
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 8, 2019
65f439d
Translate rule editor
Nox911 Jan 8, 2019
32fcf97
Fix 'then' -> 'than'
Nox911 Jan 8, 2019
90fe964
Update snapshots
Nox911 Jan 8, 2019
a4ebe6d
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 9, 2019
de60687
Merge branch 'master' into feature/translate-ml-rule_editor
Nox911 Jan 9, 2019
18c7b48
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 9, 2019
75b985c
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 9, 2019
66bca02
Fix rule description
Nox911 Jan 9, 2019
c738a16
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 9, 2019
008995d
Merge branch 'master' into feature/translate-ml-rule_editor
Nox911 Jan 9, 2019
f7eb9d4
Resolve issues from review comments
Nox911 Jan 9, 2019
aa7ec3d
Remove extra space
Nox911 Jan 9, 2019
b81bc62
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 10, 2019
8bb5062
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 11, 2019
aa56b2b
Merge branch 'master' into feature/translate-ml-rule_editor
Nox911 Jan 11, 2019
3fded32
Update snapshots
maryia-lapata Jan 11, 2019
86c3cfa
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 11, 2019
fc3cbb5
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 14, 2019
1479425
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 14, 2019
29cfa20
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 15, 2019
e020e22
Resolve review comments
Nox911 Jan 15, 2019
2cd1cfb
Merge branch 'master' into feature/translate-ml-rule_editor
Nox911 Jan 15, 2019
60f7d8e
Update snapshots
Nox911 Jan 15, 2019
88a1688
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 15, 2019
a5dc747
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 16, 2019
91ddca9
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 16, 2019
54d50eb
Merge branch 'master' of https://github.com/elastic/kibana
Nox911 Jan 17, 2019
b3b99e3
Merge branch 'master' into feature/translate-ml-rule_editor
Nox911 Jan 17, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ import { timefilter } from 'ui/timefilter';
const module = uiModules.get('apps/ml', ['react']);

import { AnomaliesTable } from './anomalies_table';
import { injectI18nProvider } from '@kbn/i18n/react';
Nox911 marked this conversation as resolved.
Show resolved Hide resolved

module.directive('mlAnomaliesTable', function ($injector) {
const reactDirective = $injector.get('reactDirective');

return reactDirective(
AnomaliesTable,
injectI18nProvider(AnomaliesTable),
[
['filter', { watchDepth: 'reference' }],
['tableData', { watchDepth: 'reference' }]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ exports[`ActionsSection renders with no actions selected 1`] = `
size="m"
>
<p>
Choose the action(s) to take when the rule matches an anomaly.
<FormattedMessage
defaultMessage="Choose the action(s) to take when the rule matches an anomaly."
id="xpack.ml.ruleEditor.actionsSection.chooseActionsDescription"
values={Object {}}
/>
</p>
</EuiText>
<EuiSpacer
Expand All @@ -32,7 +36,13 @@ exports[`ActionsSection renders with no actions selected 1`] = `
disabled={false}
id="skip_result_cb"
indeterminate={false}
label="Skip result (recommended)"
label={
<FormattedMessage
defaultMessage="Skip result (recommended)"
id="xpack.ml.ruleEditor.actionsSection.skipResultLabel"
values={Object {}}
/>
}
onChange={[MockFunction]}
/>
</EuiFlexItem>
Expand All @@ -42,7 +52,13 @@ exports[`ActionsSection renders with no actions selected 1`] = `
>
<EuiIconTip
aria-label="Info"
content="The result will not be created."
content={
<FormattedMessage
defaultMessage="The result will not be created."
id="xpack.ml.ruleEditor.actionsSection.resultNotCreatedTooltip"
values={Object {}}
/>
}
position="right"
size="s"
type="questionInCircle"
Expand Down Expand Up @@ -71,7 +87,13 @@ exports[`ActionsSection renders with no actions selected 1`] = `
disabled={false}
id="skip_model_update_cb"
indeterminate={false}
label="Skip model update"
label={
<FormattedMessage
defaultMessage="Skip model update"
id="xpack.ml.ruleEditor.actionsSection.skipModelUpdateLabel"
values={Object {}}
/>
}
onChange={[MockFunction]}
/>
</EuiFlexItem>
Expand All @@ -81,7 +103,13 @@ exports[`ActionsSection renders with no actions selected 1`] = `
>
<EuiIconTip
aria-label="Info"
content="The value for that series will not be used to update the model."
content={
<FormattedMessage
defaultMessage="The value for that series will not be used to update the model."
id="xpack.ml.ruleEditor.actionsSection.valueNotUsedToUpdateModelTooltip"
values={Object {}}
/>
}
position="right"
size="s"
type="questionInCircle"
Expand All @@ -98,7 +126,11 @@ exports[`ActionsSection renders with skip_result and skip_model_update selected
size="m"
>
<p>
Choose the action(s) to take when the rule matches an anomaly.
<FormattedMessage
defaultMessage="Choose the action(s) to take when the rule matches an anomaly."
id="xpack.ml.ruleEditor.actionsSection.chooseActionsDescription"
values={Object {}}
/>
</p>
</EuiText>
<EuiSpacer
Expand All @@ -123,7 +155,13 @@ exports[`ActionsSection renders with skip_result and skip_model_update selected
disabled={false}
id="skip_result_cb"
indeterminate={false}
label="Skip result (recommended)"
label={
<FormattedMessage
defaultMessage="Skip result (recommended)"
id="xpack.ml.ruleEditor.actionsSection.skipResultLabel"
values={Object {}}
/>
}
onChange={[Function]}
/>
</EuiFlexItem>
Expand All @@ -133,7 +171,13 @@ exports[`ActionsSection renders with skip_result and skip_model_update selected
>
<EuiIconTip
aria-label="Info"
content="The result will not be created."
content={
<FormattedMessage
defaultMessage="The result will not be created."
id="xpack.ml.ruleEditor.actionsSection.resultNotCreatedTooltip"
values={Object {}}
/>
}
position="right"
size="s"
type="questionInCircle"
Expand Down Expand Up @@ -162,7 +206,13 @@ exports[`ActionsSection renders with skip_result and skip_model_update selected
disabled={false}
id="skip_model_update_cb"
indeterminate={false}
label="Skip model update"
label={
<FormattedMessage
defaultMessage="Skip model update"
id="xpack.ml.ruleEditor.actionsSection.skipModelUpdateLabel"
values={Object {}}
/>
}
onChange={[Function]}
/>
</EuiFlexItem>
Expand All @@ -172,7 +222,13 @@ exports[`ActionsSection renders with skip_result and skip_model_update selected
>
<EuiIconTip
aria-label="Info"
content="The value for that series will not be used to update the model."
content={
<FormattedMessage
defaultMessage="The value for that series will not be used to update the model."
id="xpack.ml.ruleEditor.actionsSection.valueNotUsedToUpdateModelTooltip"
values={Object {}}
/>
}
position="right"
size="s"
type="questionInCircle"
Expand All @@ -189,7 +245,11 @@ exports[`ActionsSection renders with skip_result selected 1`] = `
size="m"
>
<p>
Choose the action(s) to take when the rule matches an anomaly.
<FormattedMessage
defaultMessage="Choose the action(s) to take when the rule matches an anomaly."
id="xpack.ml.ruleEditor.actionsSection.chooseActionsDescription"
values={Object {}}
/>
</p>
</EuiText>
<EuiSpacer
Expand All @@ -214,7 +274,13 @@ exports[`ActionsSection renders with skip_result selected 1`] = `
disabled={false}
id="skip_result_cb"
indeterminate={false}
label="Skip result (recommended)"
label={
<FormattedMessage
defaultMessage="Skip result (recommended)"
id="xpack.ml.ruleEditor.actionsSection.skipResultLabel"
values={Object {}}
/>
}
onChange={[MockFunction]}
/>
</EuiFlexItem>
Expand All @@ -224,7 +290,13 @@ exports[`ActionsSection renders with skip_result selected 1`] = `
>
<EuiIconTip
aria-label="Info"
content="The result will not be created."
content={
<FormattedMessage
defaultMessage="The result will not be created."
id="xpack.ml.ruleEditor.actionsSection.resultNotCreatedTooltip"
values={Object {}}
/>
}
position="right"
size="s"
type="questionInCircle"
Expand Down Expand Up @@ -253,7 +325,13 @@ exports[`ActionsSection renders with skip_result selected 1`] = `
disabled={false}
id="skip_model_update_cb"
indeterminate={false}
label="Skip model update"
label={
<FormattedMessage
defaultMessage="Skip model update"
id="xpack.ml.ruleEditor.actionsSection.skipModelUpdateLabel"
values={Object {}}
/>
}
onChange={[MockFunction]}
/>
</EuiFlexItem>
Expand All @@ -263,7 +341,13 @@ exports[`ActionsSection renders with skip_result selected 1`] = `
>
<EuiIconTip
aria-label="Info"
content="The value for that series will not be used to update the model."
content={
<FormattedMessage
defaultMessage="The value for that series will not be used to update the model."
id="xpack.ml.ruleEditor.actionsSection.valueNotUsedToUpdateModelTooltip"
values={Object {}}
/>
}
position="right"
size="s"
type="questionInCircle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ exports[`ConditionExpression renders with appliesTo, operator and value supplied
button={
<EuiExpression
color="secondary"
description="when"
description={
<FormattedMessage
defaultMessage="when"
id="xpack.ml.ruleEditor.conditionExpression.whenButtonLabel"
values={Object {}}
/>
}
isActive={false}
onClick={[Function]}
uppercase={true}
Expand All @@ -42,7 +48,11 @@ exports[`ConditionExpression renders with appliesTo, operator and value supplied
}
>
<EuiPopoverTitle>
When
<FormattedMessage
defaultMessage="When"
id="xpack.ml.ruleEditor.conditionExpression.whenTitle"
values={Object {}}
/>
</EuiPopoverTitle>
<div
className="euiExpression"
Expand Down Expand Up @@ -89,7 +99,17 @@ exports[`ConditionExpression renders with appliesTo, operator and value supplied
button={
<EuiExpression
color="secondary"
description="is greater than"
description={
<FormattedMessage
defaultMessage="is {operator}"
id="xpack.ml.ruleEditor.conditionExpression.isButtonLabel"
values={
Object {
"operator": "greater than",
}
}
/>
}
isActive={false}
onClick={[Function]}
uppercase={true}
Expand All @@ -112,7 +132,11 @@ exports[`ConditionExpression renders with appliesTo, operator and value supplied
}
>
<EuiPopoverTitle>
Is
<FormattedMessage
defaultMessage="Is"
id="xpack.ml.ruleEditor.conditionExpression.isTitle"
values={Object {}}
/>
</EuiPopoverTitle>
<div
className="euiExpression"
Expand Down Expand Up @@ -227,7 +251,13 @@ exports[`ConditionExpression renders with only value supplied 1`] = `
button={
<EuiExpression
color="secondary"
description="when"
description={
<FormattedMessage
defaultMessage="when"
id="xpack.ml.ruleEditor.conditionExpression.whenButtonLabel"
values={Object {}}
/>
}
isActive={false}
onClick={[Function]}
uppercase={true}
Expand All @@ -250,7 +280,11 @@ exports[`ConditionExpression renders with only value supplied 1`] = `
}
>
<EuiPopoverTitle>
When
<FormattedMessage
defaultMessage="When"
id="xpack.ml.ruleEditor.conditionExpression.whenTitle"
values={Object {}}
/>
</EuiPopoverTitle>
<div
className="euiExpression"
Expand Down Expand Up @@ -296,7 +330,17 @@ exports[`ConditionExpression renders with only value supplied 1`] = `
button={
<EuiExpression
color="secondary"
description="is "
description={
<FormattedMessage
defaultMessage="is {operator}"
id="xpack.ml.ruleEditor.conditionExpression.isButtonLabel"
values={
Object {
"operator": "",
}
}
/>
}
isActive={false}
onClick={[Function]}
uppercase={true}
Expand All @@ -319,7 +363,11 @@ exports[`ConditionExpression renders with only value supplied 1`] = `
}
>
<EuiPopoverTitle>
Is
<FormattedMessage
defaultMessage="Is"
id="xpack.ml.ruleEditor.conditionExpression.isTitle"
values={Object {}}
/>
</EuiPopoverTitle>
<div
className="euiExpression"
Expand Down
Loading