Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could you extend this plugin to also support other web-based or local translation API? #58

Open
Naereen opened this issue Apr 14, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@Naereen
Copy link

Naereen commented Apr 14, 2021

Hello there 👋 !
Congrats and thanks for your nice work @funkyremi! It's a very nice plugin!
This plugin is in my list of favorite VSCode plugins since the day I installed and tried it! (https://besson.link/visualstudiocode.en.html#the-best-plugins)

I was wondering, it shouldn't be too hard to extend a little bit the code and allow users to configure which online web-based translation API they prefer to use?
Google Translate is not the only one, there are DeepL (https://www.deepl.com/translator) and LibreTranslate (https://libretranslate.com/).

That way, the plugin can be more robust if Google Translate suddenly breaks or get suspended (Google has a long history of suspended projects...), and privacy of users could be preserved (or at least, improved) if they want to switch to LibreTranslate (as its destop version, Argos Translate, can run entirely offline and locally!).

I won't have time to do it myself, but I can help remotely by testing, giving feedback or ideas.
What do you think?

Thanks in advance! -- @Naereen from France

@funkyremi
Copy link
Owner

Excellent idea :-)
It’s not too hard but it will take time and I don’t have enough time to spend on it right now.
I’ll keep this open with a feature tag and if someone wants to work on it, feel free.

@funkyremi funkyremi added the enhancement New feature or request label Apr 14, 2021
@Naereen
Copy link
Author

Naereen commented Apr 14, 2021

Great 🚀 !
I really don't have time, but maybe in August I could have one or two interns coding on side projects with me, so I'll keep this in mind!

@oshliaer
Copy link
Contributor

For the best solution we need to declare an abstract class which declares translate method. A wrappers for the APIs or a decorator would great too.

@SamHasler
Copy link

SamHasler commented Nov 8, 2021

If anyone does work on this, could you please also consider also adding support for the Microsoft / Azure translator API

https://azure.microsoft.com/en-us/services/cognitive-services/translator/#overview

It has a 2M character per month limit on it's Free tier:
https://azure.microsoft.com/en-us/pricing/details/cognitive-services/translator/

Language Support:
https://docs.microsoft.com/en-us/azure/cognitive-services/translator/language-support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants