Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fd245d2

Browse files
Update Translation.py
1 parent 4b9b9b2 commit fd245d2

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

‎Translator Script/Translation.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,13 @@
1-
2-
31
# First Step : Go to cmd and type: pip install googletrans==3.1.0a0
4-
5-
62
# Using the Translator Class
73
from googletrans import Translator
8-
94
# Making Object of Translator Class
105
translator = Translator()
11-
12-
136
# Word you want to translate
147
Word = input('Enter what you want to translate : ')
15-
16-
17-
188
# For further language Codes
199
# https://py-googletrans.readthedocs.io/en/latest/#googletrans-languages
2010
Code = input('Enter Language Code : ')
21-
22-
2311
# Using the translator method to get work done
2412
translation = translator.translate(Word,dest=Code)
25-
26-
# printing to console
2713
print(translation.text)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /