aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers/handlebars/changelog.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/handlebars/changelog.js')
-rw-r--r--server/sonar-web/src/main/js/helpers/handlebars/changelog.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/helpers/handlebars/changelog.js b/server/sonar-web/src/main/js/helpers/handlebars/changelog.js
index 35d7f34dcb2..8c01519e825 100644
--- a/server/sonar-web/src/main/js/helpers/handlebars/changelog.js
+++ b/server/sonar-web/src/main/js/helpers/handlebars/changelog.js
@@ -17,16 +17,20 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { translate, translateWithParameters } from '../../helpers/l10n';
+
module.exports = function (diff) {
var message = '';
if (diff.newValue != null) {
- message = window.tp('issue.changelog.changed_to', window.t('issue.changelog.field', diff.key), diff.newValue);
+ message = translateWithParameters('issue.changelog.changed_to',
+ translate('issue.changelog.field', diff.key), diff.newValue);
} else {
- message = window.tp('issue.changelog.removed', window.t('issue.changelog.field', diff.key));
+ message = translateWithParameters('issue.changelog.removed',
+ translate('issue.changelog.field', diff.key));
}
if (diff.oldValue != null) {
message += ' (';
- message += window.tp('issue.changelog.was', diff.oldValue);
+ message += translateWithParameters('issue.changelog.was', diff.oldValue);
message += ')';
}
return message;