import DrilldownLink from '../../../components/shared/DrilldownLink';
import { getBranchLikeQuery } from '../../../helpers/branch-like';
import { translate } from '../../../helpers/l10n';
-import { formatMeasure, isDiffMetric } from '../../../helpers/measures';
+import { formatMeasure, isDiffMetric, localizeMetric } from '../../../helpers/measures';
import {
getComponentIssuesUrl,
getComponentSecurityHotspotsUrl,
<div>
<span className="overview-quality-gate-condition-metric little-spacer-right">
<IssueTypeIcon className="little-spacer-right" query={metric.key} />
- {metric.name}
+ {localizeMetric(metric.key)}
</span>
{!isDiff && condition.period != null && (
<span className="overview-quality-gate-condition-period text-ellipsis little-spacer-right">
className="little-spacer-right"
query="open_issues"
/>
- open_issues
+ metric.open_issues.name
</span>
<span
className="little-spacer-top small text-muted"
className="little-spacer-right"
query="reliability_rating"
/>
- reliability_rating
+ metric.reliability_rating.name
</span>
<span
className="little-spacer-top small text-muted"
className="little-spacer-right"
query="security_rating"
/>
- security_rating
+ metric.security_rating.name
</span>
<span
className="little-spacer-top small text-muted"
className="little-spacer-right"
query="sqale_rating"
/>
- sqale_rating
+ metric.sqale_rating.name
</span>
<span
className="little-spacer-top small text-muted"
className="little-spacer-right"
query="new_reliability_rating"
/>
- new_reliability_rating
+ metric.new_reliability_rating.name
</span>
<span
className="little-spacer-top small text-muted"
className="little-spacer-right"
query="new_security_rating"
/>
- new_security_rating
+ metric.new_security_rating.name
</span>
<span
className="little-spacer-top small text-muted"
className="little-spacer-right"
query="new_maintainability_rating"
/>
- new_maintainability_rating
+ metric.new_maintainability_rating.name
</span>
<span
className="little-spacer-top small text-muted"
className="little-spacer-right"
query="security_hotspots_reviewed"
/>
- security_hotspots_reviewed
+ metric.security_hotspots_reviewed.name
</span>
<span
className="little-spacer-top small text-muted"
className="little-spacer-right"
query="new_security_hotspots_reviewed"
/>
- new_security_hotspots_reviewed
+ metric.new_security_hotspots_reviewed.name
</span>
<span
className="little-spacer-top small text-muted"
className="little-spacer-right"
query="new_maintainability_rating"
/>
- new_maintainability_rating
+ metric.new_maintainability_rating.name
</span>
<span
className="little-spacer-top small text-muted"