diff options
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.js | 5 |
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> ' + window.t('issue.status', status); + var s = '<i class="icon-status-' + status.toLowerCase() + '"></i> ' + translate('issue.status', status); if (resolution != null) { - s = s + ' (' + window.t('issue.resolution', resolution) + ')'; + s = s + ' (' + translate('issue.resolution', resolution) + ')'; } return new Handlebars.default.SafeString(s); }; |