In this video, I want to show How to use Google Translate API in Python
In this video we are going to learn about Google Translate API with Python, so for this purpose, we are going to use a library that is called googletrans. so Googletrans is a free and unlimited python library that implemented Google Translate API with Python. This uses the Google Translate Ajax API to make calls to such methods as detect and translate and this will be veryvery helpful for everyone
source code :
start
from translate import Translator
def translate_text(text,target_language):
translator=Translator(to_lang=target_language)
translation=translator.translate(text)
return translation
if _name_ == "__main__":
text_to_translate = input("enter the text")
target_language = input("enter the target language")
translated_text= translate_text(text_to_translate,target_language)
print(translated_text)
end
Python Full Course Playlist
• Python Full Course Playlist
Java Full Course Playlist
• Java Full Course Playlist in Hindi
HackerRank DSA Problem Solutions PlayList
• HackerRank DSA Problem Solutions
Javascript Tutorial Playlist
• Javascript Playlist
Python Tutorial Playlist
• How to Download and Install Python 3....
Android Playlist for Beginners
• Android Playlist for Beginners
Different Types of Error in Android Playlist
• Different Type of Error in Android
C Language Multiple Choice Question and Answers
• C MCQ
Kotlin Language Full Course Playlist
• Kotlin Full Course
Big Data Multiple Choice Question and Answers
• Big Data MCQ
Android MCQ(Multiple Choice Question and Answers)
• Android MCQ
Cloud Computing MCQ(Multiple Choice Question and Answers)
/ playlistlist=pl8zxmpldpgtwgle4etjyy0fzfw_m...
DBMS MCQ(Multiple Choice Question and Answers)
• DBMS MCQ
Computer Networks MCQ(Multiple Choice Question and Answers)
• Computer Networks MCQ
Computer Architecture and Hardware Maintenance MCQ
• Computer Architecture and Hardware Ma...
Cyber Security and IT Law MCQ
• Cyber Security and IT Law MCQ
Python MCQ(Multiple Choice Question and Answers)
• Python MCQ
PHP Language Tutorial
• PHP Tutorial
Python All Program for Interview and Placement
• Python All Program for Interview and ...
Java Important Questions Asked in Interview Placement
• Most Important asked question in Inte...
Java Language MCQ(Multiple Choice Question and Answers)
• Java Language MCQ