Skip to content

Commit

Permalink
fix plural on button text
Browse files Browse the repository at this point in the history
  • Loading branch information
stephmilovic committed Mar 9, 2020
1 parent 9b27a3b commit 48d49ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const ConfirmDeleteCaseModalComp: React.FC<ConfirmDeleteCaseModalProps> = ({
<EuiConfirmModal
buttonColor="danger"
cancelButtonText={i18n.CANCEL}
confirmButtonText={i18n.DELETE_CASE}
confirmButtonText={isPlural ? i18n.DELETE_CASES : i18n.DELETE_CASE}
defaultFocusedButton="confirm"
onCancel={onCancel}
onConfirm={onConfirm}
Expand Down
4 changes: 4 additions & 0 deletions x-pack/legacy/plugins/siem/public/pages/case/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ export const DELETE_CASE = i18n.translate('xpack.siem.case.confirmDeleteCase.del
defaultMessage: 'Delete case',
});

export const DELETE_CASES = i18n.translate('xpack.siem.case.confirmDeleteCase.deleteCases', {
defaultMessage: 'Delete cases',
});

export const NAME = i18n.translate('xpack.siem.case.caseView.name', {
defaultMessage: 'Name',
});
Expand Down

0 comments on commit 48d49ff

Please sign in to comment.