diff --git a/apps/website/screens/principles/localization/LocalizationPage.tsx b/apps/website/screens/principles/localization/LocalizationPage.tsx index 1c18708f5..42113f1db 100644 --- a/apps/website/screens/principles/localization/LocalizationPage.tsx +++ b/apps/website/screens/principles/localization/LocalizationPage.tsx @@ -455,6 +455,30 @@ const sections = [ with those parameters. + + + firstResultsTitle + + First results + + + + previousResultsTitle + + Previous results + + + + nextResultsTitle + + Next results + + + + lastResultsTitle + + Last results + ), diff --git a/packages/lib/src/common/variables.ts b/packages/lib/src/common/variables.ts index 5eac64585..0a0f8d7b3 100644 --- a/packages/lib/src/common/variables.ts +++ b/packages/lib/src/common/variables.ts @@ -1504,6 +1504,10 @@ export const defaultTranslatedComponentLabels = { `${minNumberOfItems} to ${maxNumberOfItems} of ${totalItems}`, goToPageText: "Go to page:", pageOfText: (pageNumber: number, totalPagesNumber: number) => `Page: ${pageNumber} of ${totalPagesNumber}`, + firstResultsTitle: "First results", + previousResultsTitle: "Previous results", + nextResultsTitle: "Next results", + lastResultsTitle: "Last results", }, passwordInput: { inputShowPasswordTitle: "Show password", @@ -1519,7 +1523,7 @@ export const defaultTranslatedComponentLabels = { actionClearSelectionTitle: "Clear selection", actionClearSearchTitle: "Clear search", noMatchesErrorMessage: "No matches found", - selectAllLabel: "Select all" + selectAllLabel: "Select all", }, tabs: { scrollLeft: "Scroll left", diff --git a/packages/lib/src/paginator/Paginator.tsx b/packages/lib/src/paginator/Paginator.tsx index 595c1d9a8..cf89b8969 100644 --- a/packages/lib/src/paginator/Paginator.tsx +++ b/packages/lib/src/paginator/Paginator.tsx @@ -109,7 +109,7 @@ const DxcPaginator = ({ onClick={() => { onPageChange(1); }} - title="First results" + title={translatedLabels.paginator.firstResultsTitle} size={{ height: "medium" }} /> @@ -121,7 +121,7 @@ const DxcPaginator = ({ onClick={() => { onPageChange(currentPage - 1); }} - title="Previous results" + title={translatedLabels.paginator.previousResultsTitle} size={{ height: "medium" }} /> @@ -157,7 +157,7 @@ const DxcPaginator = ({ onClick={() => { onPageChange(currentPage + 1); }} - title="Next results" + title={translatedLabels.paginator.nextResultsTitle} size={{ height: "medium" }} /> { onPageChange(totalPages); }} - title="Last results" + title={translatedLabels.paginator.lastResultsTitle} size={{ height: "medium" }} />