NeoFaker supports locale-specific data for realistic test output. Locale-aware functions load data from priv/data/<locale>/. If the requested locale is unavailable, NeoFaker falls back to :default, which provides generic English (US) data.

To set the locale globally, add the following to your config.exs:

config :neo_faker, locale: :default

You can also override the locale for individual function calls. For example, to get the description in Indonesian:

iex> NeoFaker.App.description(locale: :id_id)
"Penghasil data palsu untuk pengujian dan lingkungan pengembangan Elixir."

See the configuration instructions for more details.

Available Locales

LocaleCountryLanguage
:default🌐 N/AEnglish (US), not country-specific
:id_id🇮🇩 IndonesiaBahasa Indonesia