diff --git a/client/public/locales/en/translation.json b/client/public/locales/en/translation.json index 539aa7cf1..4bcb4f305 100644 --- a/client/public/locales/en/translation.json +++ b/client/public/locales/en/translation.json @@ -162,6 +162,10 @@ "medium": "Medium", "small": "Small" }, + "issues": { + "noIssues": "Congratulations! No issues were found", + "issuesFound": "{{minor}} minor, {{critical}} critical" + }, "message": { "archetypeApplicationCount": "{{count}} application", "archetypeApplicationCount_plural": "{{count}} applications", diff --git a/client/src/app/pages/applications/components/application-detail-drawer/application-detail-drawer.tsx b/client/src/app/pages/applications/components/application-detail-drawer/application-detail-drawer.tsx index ff0797901..f5675a63b 100644 --- a/client/src/app/pages/applications/components/application-detail-drawer/application-detail-drawer.tsx +++ b/client/src/app/pages/applications/components/application-detail-drawer/application-detail-drawer.tsx @@ -215,8 +215,11 @@ const TabDetailsContent: React.FC<{ application.tasks.currentAnalyzer.state === "Failed" ? t("terms.unassigned") : currentPageReports.length === 0 - ? "Congratulations! No issues were found" - : `${minor} minor, ${critical} critical`} + ? t("issues.noIssues") + : t("issues.issuesFound", { + minor: minor, + critical: critical, + })}