Skip to content

Croatian

Croatian is one of the many supported locales in Faker. It uses the language code hr and is available as fakerHR.

Language data

KeyValue
NameCroatian
Local NameHrvatski
Languagehr
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 { fakerHR } from '@faker-js/faker';
// const { fakerHR } = require('@faker-js/faker'); // CJS

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

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

Released under the MIT License.