Skip to content

Farsi/Persian

Farsi/Persian is one of the many supported locales in Faker. It uses the language code fa and is available as fakerFA.

Language data

KeyValue
NameFarsi/Persian
Local Nameفارسی
Languagefa
ScriptArab
Directionrtl

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

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

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

Released under the MIT License.