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
15 stars 15 forks source link

fix : i18n #94

Closed kabir-afk closed 5 months ago

kabir-afk commented 5 months ago

Changes Made

June 13

With this #84 can be closed now.

June 14

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

hugolpz commented 5 months 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 !