mirror of
https://github.com/documenso/documenso.git
synced 2026-07-12 22:15:01 +10:00
fix(i18n): add pluralization to pagination (#2217)
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user