I tried translating "You cannot tell anyone." on my own, and I came up with
"Tu ne peux pas dire à personne."
However, when I tried to check it on Google Translate, it changed my sentence to
"Tu ne peux pas le dire à personne."
Is "le" really necessary before "dire"? What is the rule of these kinds of sentences?
I hope you can help me. Thanks!