Skip to content

a11y: listing pagination aria-label is not localizable #14810

Description

@cwickham

The listing pagination nav has an aria-label, but it is hardcoded English: aria-label="Page Navigation" (_pagination.ejs.md#L4). On a non-English site the label stays English. The same template already uses the localization helper two lines above (_pagination.ejs.md#L2, listing.utilities.localizedString("listing-page-no-matches")), so a language key is a drop-in fix.

Suggested fix: add a listing-pagination-label language key and use it via listing.utilities.localizedString. A default of "Pagination" also avoids a label collision with the prev/next page navigation ("Page navigation"), which appears on the same page when a site sets page-navigation: true (see #14376).

Split from #14376. Part of #8706.

Investigation was AI-assisted, grounded in a local clone (per CONTRIBUTING.md).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions