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