Skip to content

Commit

Permalink
Add internationalization for issue summary messages
Browse files Browse the repository at this point in the history
Signed-off-by: DvoraShechter <[email protected]>
  • Loading branch information
DvoraShechter committed Oct 8, 2024
1 parent 018870c commit 5bad6c1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions client/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})}
</Text>
</ListItem>
<ListItem>
Expand Down

0 comments on commit 5bad6c1

Please sign in to comment.