aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/widgets/old/treemap.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/widgets/old/treemap.js')
-rw-r--r--server/sonar-web/src/main/js/widgets/old/treemap.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/widgets/old/treemap.js b/server/sonar-web/src/main/js/widgets/old/treemap.js
index ffc4faf67b5..4d8801d804b 100644
--- a/server/sonar-web/src/main/js/widgets/old/treemap.js
+++ b/server/sonar-web/src/main/js/widgets/old/treemap.js
@@ -19,6 +19,7 @@
*/
import $ from 'jquery';
import _ from 'underscore';
+import { translate } from '../../helpers/l10n';
(function () {
@@ -56,7 +57,7 @@ import _ from 'underscore';
this.filterComponents();
if (!this.components().length) {
this.maxResultsReachedLabel
- .text(window.t('treemap.all_measures_undefined'))
+ .text(translate('treemap.all_measures_undefined'))
.style('display', 'block');
return;
}