system-design-primer icon indicating copy to clipboard operation
system-design-primer copied to clipboard

modified by yash

Open coolBrown12 opened this issue 1 year ago • 1 comments

n this example code, we first import the googletrans library and create a Translator object. We then prompt the user to enter the text they want to translate in English using the input() function.

Next, we prompt the user to enter the target language code they want to translate the text to. For example, "es" for Spanish, "fr" for French, "de" for German, etc. The user can look up the language codes on the Google Translate API documentation.

Finally, we use the translate() method of the translator object to translate the input text to the target language specified by the user, and print the translated text using the text attribute of the translation object. please add my name

coolBrown12 avatar Apr 03 '23 14:04 coolBrown12

done with part yash agarwal

coolBrown12 avatar Apr 03 '23 14:04 coolBrown12