aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/charts/treemap.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/components/charts/treemap.js')
-rw-r--r--server/sonar-web/src/main/js/components/charts/treemap.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/components/charts/treemap.js b/server/sonar-web/src/main/js/components/charts/treemap.js
index b1b316d86fa..09b95e1e151 100644
--- a/server/sonar-web/src/main/js/components/charts/treemap.js
+++ b/server/sonar-web/src/main/js/components/charts/treemap.js
@@ -24,6 +24,7 @@ import React from 'react';
import { TreemapBreadcrumbs } from './treemap-breadcrumbs';
import { ResizeMixin } from './../mixins/resize-mixin';
import { TooltipsMixin } from './../mixins/tooltips-mixin';
+import { translate } from '../../helpers/l10n';
const SIZE_SCALE = d3.scale.linear()
@@ -121,7 +122,7 @@ export const Treemap = React.createClass({
renderWhenNoData () {
return <div className="sonar-d3">
<div className="treemap-container" style={{ width: this.state.width, height: this.state.height }}>
- {window.t('no_data')}
+ {translate('no_data')}
</div>
<TreemapBreadcrumbs {...this.props}/>
</div>;