diff --git a/locales/en/plugin__console-plugin-template.json b/locales/en/plugin__console-plugin-template.json index 935a6df..69e0831 100644 --- a/locales/en/plugin__console-plugin-template.json +++ b/locales/en/plugin__console-plugin-template.json @@ -17,5 +17,13 @@ "Address": "Address", "Dashboard": "Dashboard", "Policies": "Policies", - "Policy Topology": "Policy Topology" + "Policy Topology": "Policy Topology", + "TLS": "TLS", + "Are you sure you want to delete the policy": "Are you sure you want to delete the policy", + "All Policies": "All Policies", + "DNS": "DNS", + "Auth": "Auth", + "RateLimit": "RateLimit", + "Edit": "Edit", + "Delete": "Delete" } diff --git a/src/components/KuadrantPoliciesPage.tsx b/src/components/KuadrantPoliciesPage.tsx index 4c379f1..da80c00 100644 --- a/src/components/KuadrantPoliciesPage.tsx +++ b/src/components/KuadrantPoliciesPage.tsx @@ -168,6 +168,7 @@ const AllPoliciesTable: React.FC = ({ data, unfilteredDat }; const DropdownWithKebab: React.FC = ({ obj }) => { + const { t } = useTranslation('plugin__console-plugin-template'); const [isOpen, setIsOpen] = React.useState(false); const [isDeleteModalOpen, setIsDeleteModalOpen] = React.useState(false); @@ -242,10 +243,10 @@ const DropdownWithKebab: React.FC = ({ obj }) => { > - Edit + {t('Edit')} - Delete + {t('Delete')} @@ -255,10 +256,11 @@ const DropdownWithKebab: React.FC = ({ obj }) => { onClose={() => setIsDeleteModalOpen(false)} aria-labelledby="delete-modal-title" aria-describedby="delete-modal-body" + variant="medium" > - Are you sure you want to delete the resource {obj.metadata.name}? + {t("Are you sure you want to delete the policy")}: {obj.metadata.name}?