From a26f7a1292a2e7d5238dd912bde68f807fdabb3f Mon Sep 17 00:00:00 2001 From: damencho Date: Thu, 6 Apr 2017 15:21:04 -0500 Subject: [PATCH] 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. --- modules/UI/side_pannels/profile/Profile.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/UI/side_pannels/profile/Profile.js b/modules/UI/side_pannels/profile/Profile.js index c08d2b9a9..f12ba99d0 100644 --- a/modules/UI/side_pannels/profile/Profile.js +++ b/modules/UI/side_pannels/profile/Profile.js @@ -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 {