Spanish (Mexico)
Spanish (Mexico) is one of the many supported locales in Faker. It uses the language code es_MX and is available as fakerES_MX.
Language data
| Key | Value |
|---|---|
| Name | Spanish (Mexico) |
| Local Name | Español (México) |
| Language | es |
| 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 { fakerES_MX } from '@faker-js/faker';
// const { fakerES_MX } = require('@faker-js/faker'); // CJS
// Commonly localized methods:
fakerES_MX.person.fullName();
fakerES_MX.location.streetAddress();
fakerES_MX.location.city();
fakerES_MX.location.state();
fakerES_MX.location.zipCode();
fakerES_MX.phone.number();
fakerES_MX.commerce.productName();
fakerES_MX.internet.email();
fakerES_MX.internet.url();
fakerES_MX.date.month();
fakerES_MX.date.weekday();
fakerES_MX.word.noun();
fakerES_MX.word.verb();
fakerES_MX.company.name();
// Non-localized methods work as normal:
fakerES_MX.number.int();