Skip to content

Portuguese (Portugal)

Portuguese (Portugal) is one of the many supported locales in Faker. It uses the language code pt_PT and is available as fakerPT_PT.

Language data

KeyValue
NamePortuguese (Portugal)
Local NamePortuguês (Portugal)
Languagept
ScriptLatn
Directionltr

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

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

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

Released under the MIT License.