
It’s the same in the Catholic Douay Rheims version:
Matthew 5:16 So let your light shine before men, that they may see your good works, and glorify your Father who is in heaven.
and
Matthew 6:3 But when thou dost alms, let not thy left hand know what thy right hand doth. 4 That thy alms may be in secret, and thy Father who seeth in secret will repay thee. 5 And when ye pray, you shall not be as the hypocrites, that love to stand and pray in the synagogues and corners of the streets, that they may be seen by men: Amen I say to you, they have received their reward. 6 But thou when thou shalt pray, enter into thy chamber, and having shut the door, pray to thy Father in secret: and thy Father who seeth in secret will repay thee. 7 And when you are praying, speak not much, as the heathens. For they think that in their much speaking they may be heard.
So in one passage the Bible says to shine your light before men, and in the next passage the Bible says to keep your light hidden in secret.