We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
googletrans
1 parent 64db478 commit cc01e4aCopy full SHA for cc01e4a
_googletrans.py
@@ -0,0 +1,7 @@
1
+from googletrans import Translator # pip install googletrans
2
+
3
+translator = Translator()
4
+translation = translator.translate("سلام به همه")
5
+print(f"{translation.origin} ({translation.src}) --> {translation.text} ({translation.dest})")
6
7
+# translator.detect(text) # determines the language
0 commit comments