We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08d2239 commit 3fc019aCopy full SHA for 3fc019a
Translator Script/Translation.py
@@ -1,4 +1,5 @@
1
2
+
3
# First Step : Go to cmd and type: pip install googletrans==3.1.0a0
4
5
@@ -8,11 +9,19 @@
8
9
# Making Object of Translator Class
10
translator = Translator()
11
-# Using the translator method to get work done
12
13
+# Word you want to translate
14
+Word = input('Enter what you want to translate : ')
15
16
17
18
# For further language Codes
19
# https://py-googletrans.readthedocs.io/en/latest/#googletrans-languages
-translation = translator.translate("Thanks",dest="hi")
20
+Code = input('Enter Language Code : ')
21
22
23
+# Using the translator method to get work done
24
+translation = translator.translate(Word,dest=Code)
25
26
# printing to console
-print (translation.text)
27
+print(translation.text)
0 commit comments