[Field Formats] Duration formatter should handle pluralization for single values #196761
Labels
Feature:FieldFormatters
good first issue
low hanging fruit
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
loe:small
Small Level of Effort
Team:DataDiscovery
Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
Describe the feature:
The Friendly duration formatters should account for singular values. Currently, we only use pluralized formats.
This is where we compute the unit text and join it with the value...
kibana/src/plugins/field_formats/common/converters/duration.ts
Lines 134 to 137 in 89d833b
Here is the list of all values...
kibana/src/plugins/field_formats/common/constants/duration_formats.ts
Lines 18 to 167 in 89d833b
This only applies to the long form
text
strings and not theshortText
strings.Describe a specific use case for the feature:
Pretty simple and low impact but could be nice.
The text was updated successfully, but these errors were encountered: