Skip to content

Hungarian ​

Hungarian is one of the many supported locales in Faker. It uses the language code hu and is available as fakerHU.

Language data ​

KeyValue
NameHungarian
Local Namemagyar
Languagehu
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 { fakerHU } from '@faker-js/faker';
// const { fakerHU } = require('@faker-js/faker'); // CJS

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

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

Released under the MIT License.