aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers/handlebars/statusHelper.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/handlebars/statusHelper.js')
-rw-r--r--server/sonar-web/src/main/js/helpers/handlebars/statusHelper.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/helpers/handlebars/statusHelper.js b/server/sonar-web/src/main/js/helpers/handlebars/statusHelper.js
index c339d73d288..aa0393ce376 100644
--- a/server/sonar-web/src/main/js/helpers/handlebars/statusHelper.js
+++ b/server/sonar-web/src/main/js/helpers/handlebars/statusHelper.js
@@ -18,11 +18,12 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import Handlebars from 'handlebars/runtime';
+import { translate } from '../../helpers/l10n';
module.exports = function (status, resolution) {
- var s = '<i class="icon-status-' + status.toLowerCase() + '"></i>&nbsp;' + window.t('issue.status', status);
+ var s = '<i class="icon-status-' + status.toLowerCase() + '"></i>&nbsp;' + translate('issue.status', status);
if (resolution != null) {
- s = s + '&nbsp;(' + window.t('issue.resolution', resolution) + ')';
+ s = s + '&nbsp;(' + translate('issue.resolution', resolution) + ')';
}
return new Handlebars.default.SafeString(s);
};