[fr] follow #1837

- add french translation
- fix doc example format