Skip to content

Spanish ​

Spanish is one of the many supported locales in Faker. It uses the language code es and is available as fakerES.

Language data ​

KeyValue
NameSpanish
Local NameEspañol
Languagees
ScriptLatn
Directionltr

Usage ​

A few commonly localized methods are shown below. Click the refresh button to see more random examples. Not all methods are localized in all locales.

ts
import { fakerES } from '@faker-js/faker';
// const { fakerES } = require('@faker-js/faker'); // CJS

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

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

Released under the MIT License.