Croatian
Croatian is one of the many supported locales in Faker. It uses the language code hr and is available as fakerHR.
Language data
| Key | Value |
|---|---|
| Name | Croatian |
| Local Name | Hrvatski |
| Language | hr |
| 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 { 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();