xpmn / firefox-to-deepl

Firefox extension. Highlight text on a web page and send it to DeepL
https://addons.mozilla.org/en-US/firefox/addon/to-deepl/
MIT License
88 stars 8 forks source link

Set the source language to a nonsense string to force auto-detection #16

Closed kevinulrich closed 2 years ago

kevinulrich commented 2 years ago

Currently, deeplURL has a hardcoded source language of en which falls apart when using the extension for other source languages. I could not find any definitve documentation on linking to DeepL but I did find that just setting anything that is not a valid language will cause DeepL to autodetect the source language.

This change makes it much more comfortable to use with a wide range of source languages.

xpmn commented 2 years ago

yep. You're right, but previously deepl autodetect language even if you set it as an english. Thank you, by the way, I'll update the extension