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

Get the source language when translating with "auto" on Google Translate #261

Open
PlugNPush opened this issue Apr 17, 2024 · 1 comment

Comments

@PlugNPush
Copy link

I need to know what the original language was for the text that got translated over Google Translate, could this be added to this library?

Something like .translate_with_metadata() returning both the text and source language, and maybe even some extra data if the Google Translate API gives them to you.

My previous library for translation used to do this and got abandoned (googletrans), I would appreciate having it here.

@tomekrzymyszkiewicz
Copy link

It looks like the website used to provide Google Translate translation does not display information about what language has been automatically detected. It's displayed on the main Google Translate website but there this information is obfuscated in the webpage source, so it'll be way more complicated to scrape that information.

I've tried to implement that, but I felt like I had to create the new translator scraper from scratch.

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

No branches or pull requests

2 participants