French (Switzerland)
French (Switzerland) is one of the many supported locales in Faker. It uses the language code fr_CH and is available as fakerFR_CH.
Language data
| Key | Value |
|---|---|
| Name | French (Switzerland) |
| Local Name | Français (Suisse) |
| 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_CH } from '@faker-js/faker';
// const { fakerFR_CH } = require('@faker-js/faker'); // CJS
// Commonly localized methods:
fakerFR_CH.person.fullName();
fakerFR_CH.location.streetAddress();
fakerFR_CH.location.city();
fakerFR_CH.location.state();
fakerFR_CH.location.zipCode();
fakerFR_CH.phone.number();
fakerFR_CH.commerce.productName();
fakerFR_CH.internet.email();
fakerFR_CH.internet.url();
fakerFR_CH.date.month();
fakerFR_CH.date.weekday();
fakerFR_CH.word.noun();
fakerFR_CH.word.verb();
fakerFR_CH.company.name();
// Non-localized methods work as normal:
fakerFR_CH.number.int();