French
French is one of the many supported locales in Faker. It uses the language code fr and is available as fakerFR.
Language data
| Key | Value |
|---|---|
| Name | French |
| Local Name | Français |
| Language | fr |
| Script | Latn |
| Direction | ltr |
Usage
A few commonly localized methods are shown below. Reload this page to see more random examples. Not all methods are localized in all locales.
ts
import { fakerFR } from '@faker-js/faker';
// const { fakerFR } = require('@faker-js/faker'); // CJS
// Commonly localized methods:
fakerFR.person.fullName();
fakerFR.location.streetAddress();
fakerFR.location.city();
fakerFR.location.state();
fakerFR.location.zipCode();
fakerFR.phone.number();
fakerFR.commerce.productName();
fakerFR.internet.email();
fakerFR.internet.url();
fakerFR.date.month();
fakerFR.date.weekday();
fakerFR.word.noun();
fakerFR.word.verb();
fakerFR.company.name();
// Non-localized methods work as normal:
fakerFR.number.int();