Here I will show how to make a python tanslator. My translate language will be Bengali/Bangla and it will save to a file. Here I have made a short youtube video to show how to do it.
from translate import Translator
with open('for_translation.txt', mode='r') as text_for_translation_text:
translation = translator.translate(text_for_translation)
with open('save_the_translation.txt', mode='w', encoding="utf-8") as text_after_translation:
except FileNotFoundError as e:
print('Please check the file path dear user :)')