Skip to content

German (Switzerland)

German (Switzerland) is one of the many supported locales in Faker. It uses the language code de_CH and is available as fakerDE_CH.

Language data

KeyValue
NameGerman (Switzerland)
Local NameDeutsch (Schweiz)
Languagede
ScriptLatn
Directionltr

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 { fakerDE_CH } from '@faker-js/faker';
// const { fakerDE_CH } = require('@faker-js/faker'); // CJS

// Commonly localized methods:
fakerDE_CH.person.fullName();
fakerDE_CH.location.streetAddress();
fakerDE_CH.location.city();
fakerDE_CH.location.state();
fakerDE_CH.location.zipCode();
fakerDE_CH.phone.number();
fakerDE_CH.commerce.productName();
fakerDE_CH.internet.email();
fakerDE_CH.internet.url();
fakerDE_CH.date.month();
fakerDE_CH.date.weekday();
fakerDE_CH.word.noun();
fakerDE_CH.word.verb();
fakerDE_CH.company.name();

// Non-localized methods work as normal:
fakerDE_CH.number.int();

Released under the MIT License.