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
| Key | Value |
|---|---|
| Name | Chinese (China) |
| Local Name | 中文 (中国) |
| Language | zh |
| Script | Hans |
| 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 { 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();