From 613878640cdb392f35e04280f20598e940771124 Mon Sep 17 00:00:00 2001 From: Nathan L Smith Date: Tue, 8 Oct 2019 15:06:18 -0500 Subject: [PATCH] [APM] Correctly plurarlize view in discover link (#47618) Fixes #46549 --- .../DetailView/__snapshots__/index.test.tsx.snap | 2 +- .../components/app/ErrorGroupDetails/DetailView/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/legacy/plugins/apm/public/components/app/ErrorGroupDetails/DetailView/__snapshots__/index.test.tsx.snap b/x-pack/legacy/plugins/apm/public/components/app/ErrorGroupDetails/DetailView/__snapshots__/index.test.tsx.snap index 2c011c136f005..be9d67f31cb11 100644 --- a/x-pack/legacy/plugins/apm/public/components/app/ErrorGroupDetails/DetailView/__snapshots__/index.test.tsx.snap +++ b/x-pack/legacy/plugins/apm/public/components/app/ErrorGroupDetails/DetailView/__snapshots__/index.test.tsx.snap @@ -36,7 +36,7 @@ exports[`DetailView should render Discover button 1`] = ` - View 10 occurrences in Discover + View 10 occurrences in Discover. `; diff --git a/x-pack/legacy/plugins/apm/public/components/app/ErrorGroupDetails/DetailView/index.tsx b/x-pack/legacy/plugins/apm/public/components/app/ErrorGroupDetails/DetailView/index.tsx index eba9f281abdce..04ca836e02ed9 100644 --- a/x-pack/legacy/plugins/apm/public/components/app/ErrorGroupDetails/DetailView/index.tsx +++ b/x-pack/legacy/plugins/apm/public/components/app/ErrorGroupDetails/DetailView/index.tsx @@ -103,7 +103,7 @@ export function DetailView({ errorGroup, urlParams, location }: Props) { 'xpack.apm.errorGroupDetails.viewOccurrencesInDiscoverButtonLabel', { defaultMessage: - 'View {occurrencesCount} occurrences in Discover', + 'View {occurrencesCount} {occurrencesCount, plural, one {occurrence} other {occurrences}} in Discover.', values: { occurrencesCount } } )}