Skip to content

Commit

Permalink
chore: use plural i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikThePendric committed Dec 16, 2024
1 parent 85aace1 commit cc0382b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/view/FilterBar/FilterBadge.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ import classes from './styles/FilterBadge.module.css'
const getFilterValuesText = (values) =>
values.length === 1
? values[0].name
: i18n.t('{{count}} selected', { count: values.length })
: i18n.t('{{count}} selected', {
count: values.length,
defaultValue: '{{count}} selected',
defaultValue_plural: '{{count}} selected',
})

const EditFilterButton = ({ tooltipContent, filter, openFilterModal }) => {
const buttonText = `${filter.name}: ${getFilterValuesText(filter.values)}`
Expand Down

0 comments on commit cc0382b

Please sign in to comment.