Lusito / web-ext-translator

An easy to use translation tool for web-extensions
zlib License
41 stars 9 forks source link

Initial automatic translation using Google Translate? #42

Open Juraj-Masiar opened 3 years ago

Juraj-Masiar commented 3 years ago

I've been experimenting with automatic translations using Google Translate to my native Slovak language and I was surprised how well the results were. And in the cases where the translation was not perfect, it was often because of the bad phrasing used in the English sentence.

Anyhow, even though I'm a native Slovak speaker, I've noticed that Google is many times better than me because it's using the right words that somehow won't come to my mind :). Also using this method makes translations much less painful as you only need to read and fix the issues.

There are some NPM packages for Google Translate that could be used, for example translate-google with easy API.

What do you think?

rugk commented 3 years ago

...or use https://www.deepl.com/ which has even better translations. Though for such a project you maybe need the ability to provide an API key or so, as only a limit of that is available for free.

Juraj-Masiar commented 3 years ago

@rugk I can't really tell because it has only few languages and Slovak is not one of them :( Regarding the API key, I think the library will just use some free key (google translate works even without an account) and the requests are going directly to google so there should be no problems there.