diff --git a/x-pack/plugins/session_view/public/components/process_tree_alerts_filter/index.test.tsx b/x-pack/plugins/session_view/public/components/process_tree_alerts_filter/index.test.tsx
index 45ced9a4b7c18..cb26c2ecd03a3 100644
--- a/x-pack/plugins/session_view/public/components/process_tree_alerts_filter/index.test.tsx
+++ b/x-pack/plugins/session_view/public/components/process_tree_alerts_filter/index.test.tsx
@@ -53,6 +53,19 @@ describe('ProcessTreeAlertsFiltersFilter component', () => {
expect(filterCountStatus).toBeTruthy();
});
+ it('should show pluralise correctly', async () => {
+ renderResult = mockedContext.render(
+
+ );
+
+ const filterCountStatus = renderResult.queryByTestId(
+ 'sessionView:sessionViewAlertDetailsFilterStatus'
+ );
+
+ expect(filterCountStatus).toHaveTextContent('Showing 1 alert');
+ expect(filterCountStatus).toBeTruthy();
+ });
+
it('should call onAlertEventCategorySelected with alert category when filter item is clicked ', () => {
const mockAlertEventCategorySelectedEvent = jest.fn();
renderResult = mockedContext.render(
diff --git a/x-pack/plugins/session_view/public/components/process_tree_alerts_filter/index.tsx b/x-pack/plugins/session_view/public/components/process_tree_alerts_filter/index.tsx
index cf2af552671cd..a52fcc09cc4ea 100644
--- a/x-pack/plugins/session_view/public/components/process_tree_alerts_filter/index.tsx
+++ b/x-pack/plugins/session_view/public/components/process_tree_alerts_filter/index.tsx
@@ -124,9 +124,10 @@ export const ProcessTreeAlertsFilter = ({
{totalAlertsCount === filteredAlertsCount && (
{totalAlertsCount},
+ count: totalAlertsCount,
+ bold: (str: string) => {str},
}}
/>
)}
diff --git a/x-pack/plugins/translations/translations/fr-FR.json b/x-pack/plugins/translations/translations/fr-FR.json
index 1ed13e47986fb..76b4aa11baf89 100644
--- a/x-pack/plugins/translations/translations/fr-FR.json
+++ b/x-pack/plugins/translations/translations/fr-FR.json
@@ -41491,7 +41491,6 @@
"xpack.sessionView.alertFilteredCountStatusLabel": " Affichage de {count} alertes",
"xpack.sessionView.alerts": "Alertes",
"xpack.sessionView.alertsLoadMoreButton": "Charger plus d'alertes",
- "xpack.sessionView.alertTotalCountStatusLabel": "Affichage de {count} alertes",
"xpack.sessionView.backToInvestigatedAlert": "Retour à l'alerte examinée",
"xpack.sessionView.blockedBadge": "Bloqué",
"xpack.sessionView.childProcesses": "Processus enfants",
diff --git a/x-pack/plugins/translations/translations/ja-JP.json b/x-pack/plugins/translations/translations/ja-JP.json
index b4224908c64a5..172efd4a34334 100644
--- a/x-pack/plugins/translations/translations/ja-JP.json
+++ b/x-pack/plugins/translations/translations/ja-JP.json
@@ -41475,7 +41475,6 @@
"xpack.sessionView.alertFilteredCountStatusLabel": " {count}件のアラートを表示しています",
"xpack.sessionView.alerts": "アラート",
"xpack.sessionView.alertsLoadMoreButton": "その他のアラートを読み込む",
- "xpack.sessionView.alertTotalCountStatusLabel": "{count}件のアラートを表示しています",
"xpack.sessionView.backToInvestigatedAlert": "調査されたアラートに戻る",
"xpack.sessionView.blockedBadge": "ブロック",
"xpack.sessionView.childProcesses": "子プロセス",
diff --git a/x-pack/plugins/translations/translations/zh-CN.json b/x-pack/plugins/translations/translations/zh-CN.json
index 78ff3faf194f1..cac113f4f420e 100644
--- a/x-pack/plugins/translations/translations/zh-CN.json
+++ b/x-pack/plugins/translations/translations/zh-CN.json
@@ -41518,7 +41518,6 @@
"xpack.sessionView.alertFilteredCountStatusLabel": " 正在显示 {count} 个告警",
"xpack.sessionView.alerts": "告警",
"xpack.sessionView.alertsLoadMoreButton": "加载更多告警",
- "xpack.sessionView.alertTotalCountStatusLabel": "正在显示 {count} 个告警",
"xpack.sessionView.backToInvestigatedAlert": "返回到已调查告警",
"xpack.sessionView.blockedBadge": "已阻止",
"xpack.sessionView.childProcesses": "子进程",