lingua-libre / SignIt

🌻 Lingua Libre SignIt web-browser extension translates selected word in French Sign Language via an elegant pop up so you learn sign language while reading online.
https://addons.mozilla.org/en-US/firefox/addon/lingua-libre-signit/
MIT License
11 stars 13 forks source link

fix : i18n #94

Closed kabir-afk closed 2 weeks ago

kabir-afk commented 2 weeks ago

Changes Made

June 13

With this #84 can be closed now.

June 14

kabir-afk commented 2 weeks 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.

hugolpz commented 2 weeks ago

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 !