Skip to content

Commit 349892b

Browse files
authored
[ACM-12704] Fleet view i18n misses (stolostron#3695)
Signed-off-by: zlayne <zlayne@redhat.com>
1 parent 2a32dcb commit 349892b

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

frontend/public/locales/en/translation.json

+3
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,7 @@
658658
"Cluster 1": "Cluster 1",
659659
"Cluster 2": "Cluster 2",
660660
"Cluster add-ons": "Cluster add-ons",
661+
"cluster affected": "cluster affected",
661662
"Cluster claim expressions": "Cluster claim expressions",
662663
"Cluster Conditions": "Cluster Conditions",
663664
"Cluster decision resource requeue time in seconds": "Cluster decision resource requeue time in seconds",
@@ -743,6 +744,7 @@
743744
"clusterPool.updateReleaseImage": "Update release image",
744745
"clusterPools": "Cluster pools",
745746
"Clusters": "Clusters",
747+
"clusters affected": "clusters affected",
746748
"Clusters with pending policies": "Clusters with pending policies",
747749
"Clusters with policy violations": "Clusters with policy violations",
748750
"Clusters without policy violations": "Clusters without policy violations",
@@ -1248,6 +1250,7 @@
12481250
"Enable": "Enable",
12491251
"Enable direct networking connection between different on-premises or cloud-hosted Kubernetes clusters by grouping them in cluster sets and enabling the Submariner add-on.": "Enable direct networking connection between different on-premises or cloud-hosted Kubernetes clusters by grouping them in cluster sets and enabling the Submariner add-on.",
12501252
"Enable Globalnet": "Enable Globalnet",
1253+
"Enable Observability to see more metrics": "Enable Observability to see more metrics",
12511254
"Enable policies": "Enable policies",
12521255
"Enable search to display application statuses properly.": "Enable search to display application statuses properly.",
12531256
"Enable this option to instruct Submariner not to access any external servers for public IP resolution.": "Enable this option to instruct Submariner not to access any external servers for public IP resolution.",

frontend/src/routes/Home/Overview/OverviewPageBeta.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
import { AngleDownIcon, AngleUpIcon, ExternalLinkAltIcon, HelpIcon } from '@patternfly/react-icons'
1717
import { useEffect, useMemo, useState } from 'react'
1818
import { Link } from 'react-router-dom-v5-compat'
19+
import { useDiscoveredArgoApps, useDiscoveredOCPApps } from '../../../hooks/application-queries'
1920
import { Pages, usePageVisitMetricHandler } from '../../../hooks/console-metrics'
2021
import { useTranslation } from '../../../lib/acm-i18next'
2122
import { DOC_LINKS } from '../../../lib/doc-util'
@@ -48,7 +49,6 @@ import {
4849
} from './overviewDataFunctions'
4950
import SavedSearchesCard from './SavedSearchesCard'
5051
import SummaryCard from './SummaryCard'
51-
import { useDiscoveredArgoApps, useDiscoveredOCPApps } from '../../../hooks/application-queries'
5252

5353
function renderSummaryLoading() {
5454
return [
@@ -406,7 +406,7 @@ export default function OverviewPageBeta(props: { selectedClusterLabels: Record<
406406
title={t('Cluster recommendations')}
407407
summaryTotalHeader={{
408408
num: `${clustersWithIssuesCount}`,
409-
text: clustersWithIssuesCount !== 1 ? 'clusters affected' : 'cluster affected',
409+
text: clustersWithIssuesCount !== 1 ? t('clusters affected') : t('cluster affected'),
410410
}}
411411
summaryData={[
412412
{ icon: <CriticalRiskIcon />, label: t('Critical'), count: policyReportCriticalCount },
@@ -479,7 +479,7 @@ export default function OverviewPageBeta(props: { selectedClusterLabels: Record<
479479
title={t('Alerts')}
480480
summaryTotalHeader={{
481481
num: `${clustersAffectedAlerts.length}`,
482-
text: clustersAffectedAlerts.length !== 1 ? 'clusters affected' : 'cluster affected',
482+
text: clustersAffectedAlerts.length !== 1 ? t('clusters affected') : t('cluster affected'),
483483
}}
484484
loading={alertsLoading}
485485
error={alertsError as string}
@@ -505,7 +505,7 @@ export default function OverviewPageBeta(props: { selectedClusterLabels: Record<
505505
title={t('Failing operators')}
506506
summaryTotalHeader={{
507507
num: `${clustersAffectedOperator.length}`,
508-
text: clustersAffectedOperator.length !== 1 ? 'clusters affected' : 'cluster affected',
508+
text: clustersAffectedOperator.length !== 1 ? t('clusters affected') : t('cluster affected'),
509509
}}
510510
loading={operatorLoading}
511511
error={operatorError as string}
@@ -566,7 +566,7 @@ export default function OverviewPageBeta(props: { selectedClusterLabels: Record<
566566
{!isObservabilityInstalled && (
567567
<GalleryItem key={'alerts-card'} style={{ flex: 1, minWidth: '375px' }}>
568568
<Card isRounded isFullHeight>
569-
<CardTitle>{'Enable Observability to see more metrics'}</CardTitle>
569+
<CardTitle>{t('Enable Observability to see more metrics')}</CardTitle>
570570
<CardBody isFilled={false}>
571571
<AcmButton
572572
variant={'link'}

0 commit comments

Comments
 (0)