Skip to content

[Metrics UI] Alert Preview displays "There were 1 instance" because of convoluted i18n #89807

@Zacqary

Description

@Zacqary

Screen Shot 2021-01-29 at 5 17 02 PM

This isn't such an easy bug to fix because of the complexity of the i18n strings in the Alert Preview: https://github.com/elastic/kibana/blob/master/x-pack/plugins/infra/public/alerting/common/components/alert_preview.tsx#L162-L204

We need to add a was/were differentiator to the plural, but if we put it inside the currently existing instance plural, it'd format like:

Screen Shot 2021-01-29 at 5 18 50 PM

because we need to switch to an embedded <FormattedString> in order to make it bold.

Not sure what the best practice is regarding i18n and embedded <strong> elements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:Metrics UIMetrics UI featureTeam:Infra Monitoring UI - DEPRECATEDDEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_servicesbugFixes for quality problems that affect the customer experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions