Closed kabir-afk closed 5 months ago
NOTE: Just in case you get HTTP Status Code 502 : Method not allowed
. comment out the
signLanguages = await getSignLanguagesWithVideos();
and records = await getAllRecords( signLanguage );
line in both sw.js
and background-script.js
. I haven't thoroughly tested the changes in FF, so please let me know if there are some discrepancies.
This is the highlight of this PR. I figured it was better to pass messages from popup/other content scripts to execute banana.i18n directly inside sw.js/background-script.js and then send the response acccordingly.
Thank @kabir-afk for figuring that out !
Changes Made
June 13
storeParam
message now works properly and invokes thestoreParam
function insidesw.js
andbackground-script.js
. I think this addresses #87 . Although #56 still persists.banana.i18n
directly insidesw.js/background-script.js
and then send the response acccordingly. Pros and cons of what we were doing earlier vs now :EARLIER [EDIT: Chrome native's
browser.i18n
API]SignItCoreContent
constructor not initializing timely , rather than a local storage issue. Although I am not sure why this occured as upon being passed with chosen arguements (user's preferred language ), it was logged correctly but rendered previous language.NOW [EDIT: Wikimedia
banana.i18n
sent up and processed in sw.js/background.js]init
, although not the best workaround.banana.i18n
addresses its own , if not added as html inside the script, will render the string as is.With this #84 can be closed now.
banana.i18n
, replacingbrowser.i18n
API as well as its messages.init
has to be invoked as shown in refactor : updated how SignItCoreContent() is called.June 14
.text()
, rendered<br/>
as is. But replacing it with.html()
resolved it.loadi18Localization
now as we no longer rely on it.