parent
a4b30c056d
commit
f36fc91963
@ -8,6 +8,7 @@ import { when } from "lit/directives/when.js";
|
||||
|
||||
import { SearchParamsController } from "@/controllers/searchParams";
|
||||
import { srOnly } from "@/utils/css";
|
||||
import localize from "@/utils/localize";
|
||||
import chevronLeft from "~assets/icons/chevron-left.svg";
|
||||
import chevronRight from "~assets/icons/chevron-right.svg";
|
||||
|
||||
@ -375,7 +376,7 @@ export class Pagination extends LitElement {
|
||||
.align=${"center"}
|
||||
@click=${() => this.onPageChange(page)}
|
||||
aria-disabled=${isCurrent}
|
||||
>${page}</btrix-navigation-button
|
||||
>${localize.number(page)}</btrix-navigation-button
|
||||
>
|
||||
</li>`;
|
||||
};
|
||||
|
@ -10,6 +10,7 @@ import { type PageChangeEvent } from "@/components/ui/pagination";
|
||||
import { renderSpinner } from "@/pages/org/archived-item-qa/ui/spinner";
|
||||
import type { APIPaginatedList, APISortQuery } from "@/types/api";
|
||||
import type { ArchivedItemQAPage } from "@/types/qa";
|
||||
import { pluralOf } from "@/utils/pluralize";
|
||||
|
||||
export type SortDirection = "asc" | "desc";
|
||||
export type SortableFieldNames =
|
||||
@ -139,10 +140,10 @@ export class PageList extends BtrixElement {
|
||||
>
|
||||
${total === this.totalPages
|
||||
? msg(
|
||||
str`Showing all ${this.localize.number(this.totalPages)} pages`,
|
||||
str`Showing all ${this.localize.number(this.totalPages)} ${pluralOf("pages", this.totalPages)}`,
|
||||
)
|
||||
: msg(
|
||||
str`Showing ${this.localize.number(total)} of ${this.localize.number(this.totalPages)} pages`,
|
||||
str`Showing ${this.localize.number(total)} of ${this.localize.number(this.totalPages)} ${pluralOf("pages", this.totalPages)}`,
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user