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

Support for recently added 110 new languages on Google Translate #517

Open
khlsvr opened this issue Jul 12, 2024 · 1 comment
Open

Support for recently added 110 new languages on Google Translate #517

khlsvr opened this issue Jul 12, 2024 · 1 comment

Comments

@khlsvr
Copy link

khlsvr commented Jul 12, 2024

Google has added a lot of new languages. Translating to/from some of them doesn't seem to work out of the box. [WARNING] Unknown target language code: jam

https://blog.google/products/translate/google-translate-new-languages-2024/

$ trans -U
Current version: 0.9.7.1
Already up-to-date.

@soimort
Copy link
Owner

soimort commented Jul 12, 2024

I'm aware that these new language codes will raise a 400 error from Google's side. In fact, all of them won't work out of the box, and some of them do work because they're supported alternatively by Bing.

trans uses the same legacy API that Google Chrome/Chromium in-browser translation uses. The newly added 110 languages have not landed in this API yet, as you can see from Chrome's "translate to" function that none of these 110 languages has appeared (e.g., Abkhaz)

I'll wait a while and see if Google will support them in-browser, otherwise it may take some time to do the hack.

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

No branches or pull requests

2 participants