aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/component-measures/home/Home.js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-05-13 11:57:38 +0200
committerStas Vilchik <vilchiks@gmail.com>2016-05-13 11:57:38 +0200
commit2715a0716e230a7cf92d6d4414af99ad98d7830c (patch)
tree180cf3b407146f27c96ff80bb8227e062d206908 /server/sonar-web/src/main/js/apps/component-measures/home/Home.js
parent9a74d1aeb8d8bdbcf5c5b2a98fb2b2eefd1414a7 (diff)
downloadsonarqube-2715a0716e230a7cf92d6d4414af99ad98d7830c.tar.gz
sonarqube-2715a0716e230a7cf92d6d4414af99ad98d7830c.zip
SONAR-7634 Metric names should be localized (#967)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/component-measures/home/Home.js')
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/home/Home.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/component-measures/home/Home.js b/server/sonar-web/src/main/js/apps/component-measures/home/Home.js
index a68619568c1..84b8dabece3 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/home/Home.js
+++ b/server/sonar-web/src/main/js/apps/component-measures/home/Home.js
@@ -22,7 +22,7 @@ import { Link, IndexLink } from 'react-router';
import LeakPeriodLegend from '../components/LeakPeriodLegend';
import { getLeakPeriod } from '../../../helpers/periods';
-import { translate } from '../../../helpers/l10n';
+import { translate, getLocalizedMetricDomain } from '../../../helpers/l10n';
export default class Home extends React.Component {
componentDidMount () {
@@ -61,7 +61,7 @@ export default class Home extends React.Component {
<Link
to={{ pathname: `domain/${domain.name}`, query: { id: component.key } }}
activeClassName="active">
- {domain.name}
+ {getLocalizedMetricDomain(domain.name)}
</Link>
</li>
))}