language auto-detect (Chrome extension/bookmarklet)
It would be nice that the chrome extension/bookmarklet was able to detect the language of the text and set the values "Translate from:" and "to" accordingly.
I think this is pretty easy to implement because Google translate API provides a function to detect the language used in a text.
Thanks. One issue is that Google charge per character that you feed into the language detection API, so if I threw a whole web-page into it it would get expensive. To implement this I would probably look into implementing a method myself using word lists from all the languages.
Currently, I look for some information embedded in HTML meta tags of the web page which indicates the language it’s in. Of course, most sites don’t use this, and it’s not always reliable, so usually it’s up to the user to make sure it’s correct.
-
SWA RandomIdea commented
Just to say that I find that ReadLang is actually pretty good at this. Unlike, for example, Reverso Context, which I usually have to reset.