Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,13 @@ export const ConsoleDataView = <
</ResponsiveActions>
)
}
pagination={<Pagination itemCount={filteredData.length} {...pagination} />}
pagination={
<Pagination
itemCount={filteredData.length}
titles={{ ofWord: t('public~of') }}
{...pagination}
/>
}
/>
<InnerScrollContainer>
<DataViewTable
Expand Down
1 change: 1 addition & 0 deletions frontend/packages/helm-plugin/locales/en/helm-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"App version": "App version",
"Are you sure you want to rollback <1>{{releaseName}}</1> to <4>Revision {{revision}}</4>?": "Are you sure you want to rollback <1>{{releaseName}}</1> to <4>Revision {{revision}}</4>?",
"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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,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';
Expand Down Expand Up @@ -38,6 +39,7 @@ const HelmReleaseHistoryTable: React.FC<HelmReleaseHistoryTableProps> = ({
customGetColumnIndexById,
customSortFunctions,
}) => {
const { t } = useTranslation();
const [searchParams, setSearchParams] = useSearchParams();

// Initialize pagination
Expand Down Expand Up @@ -145,6 +147,7 @@ const HelmReleaseHistoryTable: React.FC<HelmReleaseHistoryTableProps> = ({
page={pagination.page}
onSetPage={pagination.onSetPage}
onPerPageSelect={pagination.onPerPageSelect}
titles={{ ofWord: t('helm-plugin~of') }}
isCompact
/>
}
Expand Down
12 changes: 10 additions & 2 deletions frontend/public/components/api-explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,11 @@ const APIResourcesList = compose(
/>
</ToolbarItem>
<ToolbarItem variant="pagination">
<Pagination itemCount={sortedResources.length} {...pagination} />
<Pagination
itemCount={sortedResources.length}
titles={{ ofWord: t('public~of') }}
{...pagination}
/>
</ToolbarItem>
</ToolbarContent>
</Toolbar>
Expand Down Expand Up @@ -837,7 +841,11 @@ const APIResourceAccessReview: FC<APIResourceTabProps> = ({
/>
</FlexItem>
<FlexItem align={{ default: 'alignRight' }}>
<Pagination itemCount={filteredData.length} {...pagination} />
<Pagination
itemCount={filteredData.length}
titles={{ ofWord: t('public~of') }}
{...pagination}
/>
</FlexItem>
</Flex>
<RowFilter
Expand Down
1 change: 1 addition & 0 deletions frontend/public/locales/en/public.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"Cluster": "Cluster",
"API resources": "API resources",
"by kind": "by kind",
"of": "of",
"Kind": "Kind",
"Group": "Group",
"Namespaced": "Namespaced",
Expand Down