From 90d768d7bcec1b425bf9d54b3eaa5a47012190e9 Mon Sep 17 00:00:00 2001 From: cyril-ui-developer Date: Tue, 3 Feb 2026 05:18:53 -0500 Subject: [PATCH] DataView Pagination page menus : i18n misses --- .../src/components/data-view/ConsoleDataView.tsx | 8 +++++++- .../packages/helm-plugin/locales/en/helm-plugin.json | 1 + .../details-page/history/HelmReleaseHistoryTable.tsx | 3 +++ frontend/public/components/api-explorer.tsx | 12 ++++++++++-- frontend/public/locales/en/public.json | 1 + 5 files changed, 22 insertions(+), 3 deletions(-) diff --git a/frontend/packages/console-app/src/components/data-view/ConsoleDataView.tsx b/frontend/packages/console-app/src/components/data-view/ConsoleDataView.tsx index 2e6386c285a..baa48d62f16 100644 --- a/frontend/packages/console-app/src/components/data-view/ConsoleDataView.tsx +++ b/frontend/packages/console-app/src/components/data-view/ConsoleDataView.tsx @@ -191,7 +191,13 @@ export const ConsoleDataView = < ) } - pagination={} + pagination={ + + } /> {{releaseName}} to <4>Revision {{revision}}?": "Are you sure you want to rollback <1>{{releaseName}} to <4>Revision {{revision}}?", "Rollback to Revision {{revision}}": "Rollback to Revision {{revision}}", + "of": "of", "No release notes available": "No release notes available", "Release notes are not available for this Helm Chart.": "Release notes are not available for this Helm Chart.", "Name": "Name", diff --git a/frontend/packages/helm-plugin/src/components/details-page/history/HelmReleaseHistoryTable.tsx b/frontend/packages/helm-plugin/src/components/details-page/history/HelmReleaseHistoryTable.tsx index ae978c475f7..939f2186460 100644 --- a/frontend/packages/helm-plugin/src/components/details-page/history/HelmReleaseHistoryTable.tsx +++ b/frontend/packages/helm-plugin/src/components/details-page/history/HelmReleaseHistoryTable.tsx @@ -10,6 +10,7 @@ import { useDataViewPagination, } from '@patternfly/react-data-view'; import { InnerScrollContainer, SortByDirection } from '@patternfly/react-table'; +import { useTranslation } from 'react-i18next'; import { useSearchParams } from 'react-router-dom-v5-compat'; import { LoadingBox } from '@console/internal/components/utils'; import { HelmRelease } from '../../../types/helm-types'; @@ -39,6 +40,7 @@ const HelmReleaseHistoryTable: FC = ({ customGetColumnIndexById, customSortFunctions, }) => { + const { t } = useTranslation(); const [searchParams, setSearchParams] = useSearchParams(); // Initialize pagination @@ -143,6 +145,7 @@ const HelmReleaseHistoryTable: FC = ({ page={pagination.page} onSetPage={pagination.onSetPage} onPerPageSelect={pagination.onPerPageSelect} + titles={{ ofWord: t('helm-plugin~of') }} isCompact /> } diff --git a/frontend/public/components/api-explorer.tsx b/frontend/public/components/api-explorer.tsx index 8ee29ec6f6f..d9c78522556 100644 --- a/frontend/public/components/api-explorer.tsx +++ b/frontend/public/components/api-explorer.tsx @@ -433,7 +433,11 @@ const APIResourcesList: FC = () => { /> - + @@ -833,7 +837,11 @@ const APIResourceAccessReview: FC = ({ /> - +