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'"; }
|
if (params.label) { html += " aria-hidden='true'"; }
|
||||||
html += `></${tagName}>`;
|
html += `></${tagName}>`;
|
||||||
if (params.label) {
|
if (params.label) {
|
||||||
html += "<span class='sr-only'>" + I18n.t(params.label) + "</span>";
|
html += `<span class='sr-only'>${params.label}</span>`;
|
||||||
}
|
}
|
||||||
return html;
|
return html;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue