crow-translate / QOnlineTranslator

A library for Qt5 that provides free usage of Google, Yandex and Bing translate API.
GNU General Public License v3.0
79 stars 12 forks source link

Add Lingva support #23

Closed VolkMilit closed 2 years ago

VolkMilit commented 2 years ago

This PR is adding Lingva support. It uses the official Lingva instance, doesn't require key API. Same translations limits, I suppose (documentation doesn't say anything about it). I'm not sure if we need StateMachine here, because Lingva doesn't support dictionaries and transliterations. I will fix that by request.

Another trick is we need, somehow, parse TTS, as Lingva return it in json byte array.

As previous PR, we still need to allow users to use other instances, instead of hardcoded one. But this is topic for future contributions.

Close #19

VolkMilit commented 2 years ago

Done resolving conflicts, you can merge now :)