UlionTse / translators

🌏🌍🌎Translators🌎🌍🌏 is a library that aims to bring free, multiple, enjoyable translations to individuals and students in Python. Translators是一个旨在用Python为个人和学生带来免费、多样、愉快翻译的库。
https://pypi.org/project/translators/
GNU General Public License v3.0
1.62k stars 189 forks source link

[Feature]: Return the chosen language (handy when using 'auto') #140

Closed ManuelSchneid3r closed 1 year ago

ManuelSchneid3r commented 1 year ago

It would be nice to know which language was chosen as source language when translated with 'auto'. A function translate that returns something like ['src_lang', 'dest_lang', 'translated_text'] would be awesome.

UlionTse commented 1 year ago

@ManuelSchneid3r Hello friend ! Please read this -> https://github.com/UlionTse/translators/issues/139#issuecomment-1691605536

In general, you can pip install langdetect or pip install langid. Better yet, you can pip install gcld3 or pip install fasttext-langdetect.

ManuelSchneid3r commented 1 year ago

indeed this issue is covered by #139. ty, i'll join the dicsussion there.