V
V
Vitaly Pershin2021-01-13 14:03:19
Machine translation from one language to another
Vitaly Pershin, 2021-01-13 14:03:19

Yandex Translator widget, how to set your own list of languages ​​into which you can translate?

By generating a standard widget , a huge list of about 80 languages ​​\u200b\u200bis obtained, which does not fit into the browser window and does not adapt in any way.

5ffed2cc6e387795713912.jpeg

Of all the languages, only about 6 are needed, but the documentation there is more about the concept of the translator itself and its capabilities, and the widget is not mentioned at all. I met sites where I saw an incomplete list of languages, but I can’t find it, if anyone knows which parameter is responsible for the list of languages ​​into which you can translate, I will be very grateful. Tried the ui parameter from the documentation, no response.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Pershin, 2021-01-14
@Get-Web

In general, I asked those questions. Yandex support:

Hello. The translator widget leads to documentation in which there is no word about the widget at all. In particular, how for a widget to choose for translation not the entire list of 80 languages, but, for example, 5 that are needed. And how using the widget to prohibit the translation of certain words in the html markup. For example, the Google widget uses the notranslate class for this, and everything in it will not be translated.

And got the answer:

Hello Vitaly!
There is no such possibility in our widget now.
Thank you for your desire to make Yandex.Translate more convenient! I have forwarded your suggestion to the development team.

I had to get out myself, I created a markup with a list of languages ​​and through js I made a choice of those languages ​​that I need, simulating clicks on a hidden widget. How to appear the time will write somewhere in more detail.
U.P. Wrote the script https://github.com/get-web/yandex-translate-custom...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question