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