From 8ae2c4555a0e448fd540b192eb211f3f8397c71a Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 14 Feb 2018 12:41:24 +0100 Subject: [PATCH] FIX: do not translate the same string two times when rendering icon label --- app/assets/javascripts/discourse-common/lib/icon-library.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse-common/lib/icon-library.js.es6 b/app/assets/javascripts/discourse-common/lib/icon-library.js.es6 index 84242d03f65..aa3f057e006 100644 --- a/app/assets/javascripts/discourse-common/lib/icon-library.js.es6 +++ b/app/assets/javascripts/discourse-common/lib/icon-library.js.es6 @@ -90,7 +90,7 @@ registerIconRenderer({ if (params.label) { html += " aria-hidden='true'"; } html += `>`; if (params.label) { - html += "" + I18n.t(params.label) + ""; + html += `${params.label}`; } return html; },