diff --git a/locales/en/plugin__kuadrant-console-plugin.json b/locales/en/plugin__kuadrant-console-plugin.json index 52e6246..459ecc9 100644 --- a/locales/en/plugin__kuadrant-console-plugin.json +++ b/locales/en/plugin__kuadrant-console-plugin.json @@ -44,6 +44,7 @@ "Failure Threshold": "Failure Threshold", "Feature Highlights": "Feature Highlights", "Form View": "Form View", + "found": "found", "Gateway API Target Reference": "Gateway API Target Reference", "Gateway: Reference to a Kubernetes resource that the policy attaches to. To create an additional gateway go to": "Gateway: Reference to a Kubernetes resource that the policy attaches to. To create an additional gateway go to", "Gateways": "Gateways", @@ -68,8 +69,8 @@ "Loading..": "Loading..", "Name": "Name", "Namespace": "Namespace", + "No": "No", "No limits configured yet": "No limits configured yet", - "No policies found": "No policies found", "OK": "OK", "Overview": "Overview", "Policies": "Policies", @@ -95,9 +96,10 @@ "Select Issuer": "Select Issuer", "Status": "Status", "Targets Gateway API networking resources Gateways to provide TLS for gateway listeners by managing the lifecycle of TLS certificates using cert-manager": "Targets Gateway API networking resources Gateways to provide TLS for gateway listeners by managing the lifecycle of TLS certificates using cert-manager", - "There are no policies to display - please create some.": "There are no policies to display - please create some.", + "There are no": "There are no", "TLS": "TLS", "TLSPolicy": "TLSPolicy", + "to display - please create some.": "to display - please create some.", "Type": "Type", "Unique name of the DNS Policy": "Unique name of the DNS Policy", "Unique name of the TLSPolicy.": "Unique name of the TLSPolicy.", diff --git a/src/components/KuadrantOverviewPage.tsx b/src/components/KuadrantOverviewPage.tsx index 5b53577..3924ed1 100644 --- a/src/components/KuadrantOverviewPage.tsx +++ b/src/components/KuadrantOverviewPage.tsx @@ -316,6 +316,7 @@ const KuadrantOverviewPage: React.FC = () => { resources={[resourceGVKMapping['Gateway']]} columns={columns} namespace="#ALL_NS#" + emtpyResourceName="Gateways" /> @@ -330,6 +331,7 @@ const KuadrantOverviewPage: React.FC = () => { resources={[resourceGVKMapping['HTTPRoute']]} columns={columns} namespace="#ALL_NS#" + emtpyResourceName="HTTPRoutes" /> diff --git a/src/components/ResourceList.tsx b/src/components/ResourceList.tsx index 978a726..5a9c3f1 100644 --- a/src/components/ResourceList.tsx +++ b/src/components/ResourceList.tsx @@ -169,6 +169,7 @@ type ResourceListProps = { kind: string; }>; namespace?: string; + emtpyResourceName?: string; paginationLimit?: number; columns?: TableColumn[]; }; @@ -178,6 +179,7 @@ const ResourceList: React.FC = ({ namespace = '#ALL_NS#', paginationLimit = 10, columns, + emtpyResourceName = 'Policies', }) => { const { t } = useTranslation('plugin__kuadrant-console-plugin'); @@ -357,12 +359,10 @@ const ResourceList: React.FC = ({ - {t('plugin__kuadrant-console-plugin~No policies found')} + {t('No')} {emtpyResourceName} {t('found')} - {t( - 'plugin__kuadrant-console-plugin~There are no policies to display - please create some.', - )} + {t('There are no')} {emtpyResourceName} {t('to display - please create some.')} ) : (