[APM] Correctly plurarlize view in discover link (#47618)

Fixes #46549
This commit is contained in:
Nathan L Smith 2019-10-08 15:06:18 -05:00 committed by GitHub
parent c6c397ff19
commit 6e956e3f88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ exports[`DetailView should render Discover button 1`] = `
<EuiButtonEmpty
iconType="discoverApp"
>
View 10 occurrences in Discover
View 10 occurrences in Discover.
</EuiButtonEmpty>
</DiscoverErrorLink>
`;

View file

@ -104,7 +104,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 }
}
)}