FIX: do not translate the same string two times when rendering icon label
This commit is contained in:
parent
23ef5f10e9
commit
8ae2c4555a
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue