How can I translate months of date field?
You're not supposed to do this yourself.

What you need to do, is to enable the core Language and Interface translations, select French as the site's language, and update the site's tranlations (this will take some time if its the first time you do this).  After doing all that, all long date fields should display the month names in French.

This is how it looks at my siste: