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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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;
},