Hi,
Actually I have never done project on texts but this medium article 17 may help you, because they have built a Persian-English translator. You may know, Persian and Arabic both use same scripts (right to left, same characters except 4).
Good luck