Fixes profile panel translation.
Strings are not translated when opening the profile side panel on FF. It was that we were creating profile panel html after i18n library had loaded and had translated the rest of the html.
This commit is contained in:
parent
ae8c5287e4
commit
a26f7a1292
|
@ -36,6 +36,9 @@ const htmlStr = `
|
||||||
function initHTML() {
|
function initHTML() {
|
||||||
$(`#${sidePanelsContainerId}`)
|
$(`#${sidePanelsContainerId}`)
|
||||||
.append(htmlStr);
|
.append(htmlStr);
|
||||||
|
// make sure we translate the panel, as adding it can be after i18n
|
||||||
|
// library had initialized and translated already present html
|
||||||
|
APP.translation.translateElement($(`#${sidePanelsContainerId}`));
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
Loading…
Reference in New Issue