Skip to content

Chinese (China)

Chinese (China) is one of the many supported locales in Faker. It uses the language code zh_CN and is available as fakerZH_CN.

Language data

KeyValue
NameChinese (China)
Local Name中文 (中国)
Languagezh
ScriptHans
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 { fakerZH_CN } from '@faker-js/faker';
// const { fakerZH_CN } = require('@faker-js/faker'); // CJS

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

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

Released under the MIT License.