translate-tools / linguist

Translate web pages, highlighted text, Netflix subtitles, private messages, speak the translated text, and save important translations to your personal dictionary to learn words even offline
https://linguister.io
BSD 3-Clause "New" or "Revised" License
707 stars 26 forks source link

Update GoogleTranslate module #519

Open Prasanta-Hembram opened 1 week ago

Prasanta-Hembram commented 1 week ago

Description:

The Linguist extension's Google Translate module likely relies on a static list of supported languages. As Google Translate's language support is expanding and needs to be updated manually regularly. Below are the sources where supported languages are updated regularly (even before google list them in their official website :-)).

vitonsky commented 1 week ago

What this issue about?

Prasanta-Hembram commented 1 week ago

What this issue about?

I have updated, sorry forgot to add description and lack of clarity.

vitonsky commented 1 week ago

@Prasanta-Hembram thanks for update. Linguist uses languages defined in ISO-639-1 standard, but not languages supported by google, since Linguist is not just wrapper around Google rather it is replace for google translator.

What a reasons to add Languages into Linguist? Do you have some specific problem with languages list?

Prasanta-Hembram commented 1 week ago

All those languages are not available in Linguist GoogleTranslate module, example Santali is present in defined in ISO-639-1 standard, but not in Linguist extention. If I have to update/add langauge like Santali to GoogelTranslate module how to do it.

vitonsky commented 1 week ago

@Prasanta-Hembram as i see there are no this language in vesrion 1 (2-letter code): https://github.com/vitonsky/ISO-639_langs/blob/a3611a49b8f6bb369734a03b36fa161114cce4ac/ISO-639-1/data.json#L2725-L2731

If this is incorrect and you have links that confirm it, we have to fix it.

Otherwise this language will not supported even if any translator support it.

This design decision is motivated by factors below