fix(i18n): add pluralization to pagination (#2217)

This commit is contained in:
Konrad
2025-12-01 01:38:57 +01:00
committed by GitHub
parent 2de5c1992f
commit 327b0eaf86
@@ -27,10 +27,19 @@ export function DataTablePagination<TData>({
{match(additionalInformation)
.with('SelectedCount', () => (
<span>
<Trans>
{table.getFilteredSelectedRowModel().rows.length} of{' '}
{table.getFilteredRowModel().rows.length} row(s) selected.
</Trans>
<Plural
value={table.getFilteredRowModel().rows.length}
one={
<Trans>
{table.getFilteredSelectedRowModel().rows.length} of # row selected.
</Trans>
}
other={
<Trans>
{table.getFilteredSelectedRowModel().rows.length} of # rows selected.
</Trans>
}
/>
</span>
))
.with('VisibleCount', () => {