Skip to content

[i18n] core.euiFilterButton.filterBadge is setting hardcoded values #4786

@afharo

Description

@afharo

The i18n label core.euiFilterButton.filterBadge receives a value filterCountLabel that is calculated depending on other value:

https://github.com/elastic/kibana/blob/5f618da802228025b8225ff36222d02c95708230/src/core/public/i18n/i18n_eui_mapping.tsx#L503-L507

The problem is that the hardcoded values are not localized.

I think we can fix that by referencing a new i18n.translate('core.euiFilterButton.filterBadgeActive', { defaultValue: 'active' }) and i18n.translate('core.euiFilterButton.filterBadgeAvailable', { defaultValue: 'available' })

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions