Skip to content

Commit

Permalink
updated translations to use securitySolution after rename
Browse files Browse the repository at this point in the history
  • Loading branch information
yctercero committed Jun 4, 2020
1 parent 8b91e10 commit 878547e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { i18n } from '@kbn/i18n';
import { OperatorOption, OperatorType, Operator } from './types';

export const isOperator: OperatorOption = {
message: i18n.translate('xpack.siem.exceptions.isOperatorLabel', {
message: i18n.translate('xpack.securitySolution.exceptions.isOperatorLabel', {
defaultMessage: 'is',
}),
value: 'is',
Expand All @@ -17,7 +17,7 @@ export const isOperator: OperatorOption = {
};

export const isNotOperator: OperatorOption = {
message: i18n.translate('xpack.siem.exceptions.isNotOperatorLabel', {
message: i18n.translate('xpack.securitySolution.exceptions.isNotOperatorLabel', {
defaultMessage: 'is not',
}),
value: 'is_not',
Expand All @@ -26,7 +26,7 @@ export const isNotOperator: OperatorOption = {
};

export const isOneOfOperator: OperatorOption = {
message: i18n.translate('xpack.siem.exceptions.isOneOfOperatorLabel', {
message: i18n.translate('xpack.securitySolution.exceptions.isOneOfOperatorLabel', {
defaultMessage: 'is one of',
}),
value: 'is_one_of',
Expand All @@ -35,7 +35,7 @@ export const isOneOfOperator: OperatorOption = {
};

export const isNotOneOfOperator: OperatorOption = {
message: i18n.translate('xpack.siem.exceptions.isNotOneOfOperatorLabel', {
message: i18n.translate('xpack.securitySolution.exceptions.isNotOneOfOperatorLabel', {
defaultMessage: 'is not one of',
}),
value: 'is_not_one_of',
Expand All @@ -44,7 +44,7 @@ export const isNotOneOfOperator: OperatorOption = {
};

export const existsOperator: OperatorOption = {
message: i18n.translate('xpack.siem.exceptions.existsOperatorLabel', {
message: i18n.translate('xpack.securitySolution.exceptions.existsOperatorLabel', {
defaultMessage: 'exists',
}),
value: 'exists',
Expand All @@ -53,7 +53,7 @@ export const existsOperator: OperatorOption = {
};

export const doesNotExistOperator: OperatorOption = {
message: i18n.translate('xpack.siem.exceptions.doesNotExistOperatorLabel', {
message: i18n.translate('xpack.securitySolution.exceptions.doesNotExistOperatorLabel', {
defaultMessage: 'does not exist',
}),
value: 'does_not_exist',
Expand All @@ -62,7 +62,7 @@ export const doesNotExistOperator: OperatorOption = {
};

export const isInListOperator: OperatorOption = {
message: i18n.translate('xpack.siem.exceptions.isInListOperatorLabel', {
message: i18n.translate('xpack.securitySolution.exceptions.isInListOperatorLabel', {
defaultMessage: 'is in list',
}),
value: 'is_in_list',
Expand All @@ -71,7 +71,7 @@ export const isInListOperator: OperatorOption = {
};

export const isNotInListOperator: OperatorOption = {
message: i18n.translate('xpack.siem.exceptions.isNotInListOperatorLabel', {
message: i18n.translate('xpack.securitySolution.exceptions.isNotInListOperatorLabel', {
defaultMessage: 'is not in list',
}),
value: 'is_not_in_list',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,45 @@
*/
import { i18n } from '@kbn/i18n';

export const EDIT = i18n.translate('xpack.siem.exceptions.editButtonLabel', {
export const EDIT = i18n.translate('xpack.securitySolution.exceptions.editButtonLabel', {
defaultMessage: 'Edit',
});

export const REMOVE = i18n.translate('xpack.siem.exceptions.removeButtonLabel', {
export const REMOVE = i18n.translate('xpack.securitySolution.exceptions.removeButtonLabel', {
defaultMessage: 'Remove',
});

export const COMMENTS_SHOW = (comments: number) =>
i18n.translate('xpack.siem.exceptions.showCommentsLabel', {
i18n.translate('xpack.securitySolution.exceptions.showCommentsLabel', {
values: { comments },
defaultMessage: 'Show ({comments}) {comments, plural, =1 {Comment} other {Comments}}',
});

export const COMMENTS_HIDE = (comments: number) =>
i18n.translate('xpack.siem.exceptions.hideCommentsLabel', {
i18n.translate('xpack.securitySolution.exceptions.hideCommentsLabel', {
values: { comments },
defaultMessage: 'Hide ({comments}) {comments, plural, =1 {Comment} other {Comments}}',
});

export const DATE_CREATED = i18n.translate('xpack.siem.exceptions.dateCreatedLabel', {
export const DATE_CREATED = i18n.translate('xpack.securitySolution.exceptions.dateCreatedLabel', {
defaultMessage: 'Date created',
});

export const CREATED_BY = i18n.translate('xpack.siem.exceptions.createdByLabel', {
export const CREATED_BY = i18n.translate('xpack.securitySolution.exceptions.createdByLabel', {
defaultMessage: 'Created by',
});

export const COMMENT = i18n.translate('xpack.siem.exceptions.commentLabel', {
export const COMMENT = i18n.translate('xpack.securitySolution.exceptions.commentLabel', {
defaultMessage: 'Comment',
});

export const COMMENT_EVENT = i18n.translate('xpack.siem.exceptions.commentEventLabel', {
export const COMMENT_EVENT = i18n.translate('xpack.securitySolution.exceptions.commentEventLabel', {
defaultMessage: 'added a comment',
});

export const OPERATING_SYSTEM = i18n.translate('xpack.siem.exceptions.operatingSystemLabel', {
defaultMessage: 'OS',
});
export const OPERATING_SYSTEM = i18n.translate(
'xpack.securitySolution.exceptions.operatingSystemLabel',
{
defaultMessage: 'OS',
}
);

0 comments on commit 878547e

Please sign in to comment.