Repository navigation
ROU-12414: Make the pagination page-button labels translatable - #538
Merged
Merged
Conversation
Add OutSystems.GridAPI.Pagination.SetPageButtonLabels so the ButtonList block can send translated
aria-label templates ("{0}" is the page number) on every render. The page buttons are only re-created
when the labels change. The ellipsis is hidden from screen readers. ADR-0010.
|
OS-giulianasilva
approved these changes
Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This PR is for making the Grid pagination page-button labels translatable (ROU-12414).
Context
The pagination counter words and the arrow-button labels are texts of the low-code Pagination blocks, so the platform translates them. The numbered page buttons are created by the library in JavaScript and had their
aria-labelhard-coded as"page N"/"go to page N", so they could not be translated. The decision and the rejected options are in ADR-0010.What was happening
aria-labelwas always English, whatever the app locale....between page buttons.What was done
OutSystems.GridAPI.Pagination.SetPageButtonLabels(gridID, currentPageLabel, goToPageLabel). The labels are templates where{0}is the page number, so each language can place the number where it needs it ("Seite {0}","{0} ページ"). It applies them when the Grid is ready, or once it is initialized.IPagination.setPageButtonLabels/Pagination.setPageButtonLabels: empty labels, or labels without{0}, fall back to the English defaults. The page buttons are only re-created when the labels change, so the block can call it on every render.aria-hidden="true".Validation
npx tsc --noEmit,npm run lintand prettier clean.outsystems-datagrid-testsPR on branchROU-12414(@locale and @pagination), to run once both modules are published with this build.Test Steps
de: page buttons are labelled "Seite 1" / "zur Seite 2".ja-JP: "1 ページ" / "2 ページへ移動"....: it hasaria-hidden="true".Checklist