FIX: do not translate the same string two times when rendering icon label

This commit is contained in:
Joffrey JAFFEUX
2018-02-14 12:41:24 +01:00
committed by GitHub
parent 23ef5f10e9
commit 8ae2c4555a

View File

@ -90,7 +90,7 @@ registerIconRenderer({
if (params.label) { html += " aria-hidden='true'"; }
html += `></${tagName}>`;
if (params.label) {
html += "<span class='sr-only'>" + I18n.t(params.label) + "</span>";
html += `<span class='sr-only'>${params.label}</span>`;
}
return html;
},