Skip to content

Arabic

Arabic is one of the many supported locales in Faker. It uses the language code ar and is available as fakerAR.

Language data

KeyValue
NameArabic
Local Nameاَلْعَرَبِيَّةُ
Languagear
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 { fakerAR } from '@faker-js/faker';
// const { fakerAR } = require('@faker-js/faker'); // CJS

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

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

Released under the MIT License.