shameiz Why don’t you try neural machine translator or translation that was my project AI and machine learning class. I will refer to the video that I used to create it. It’s like google translate but translations won’t be close to the actual google translate it will be a bit off(ok actually way off 😅😅🤣🤣). But it will help you understand how google translate works, how AI and machine learning works. Just give it a try see if it works for you.
https://www.youtube.com/watch?v=HuZq5KkLx8Q