Skip to content

Thai

Thai is one of the many supported locales in Faker. It uses the language code th and is available as fakerTH.

Language data

KeyValue
NameThai
Local Nameไทย
Languageth
ScriptThai
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 { fakerTH } from '@faker-js/faker';
// const { fakerTH } = require('@faker-js/faker'); // CJS

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

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

Released under the MIT License.