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:
damencho 2017-04-06 15:21:04 -05:00
parent ae8c5287e4
commit a26f7a1292
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,9 @@ const htmlStr = `
function initHTML() {
$(`#${sidePanelsContainerId}`)
.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 {