API Reference erli18n v#0.8.0

Copy Markdown View Source

Modules

Public façade (API) of the erli18n library — the single entry point for anyone using the library in an application (GNU gettext family).

The erli18n library's application callback: the OTP entry point that brings the process tree up and down.

Consumer-side boot engine for compile-time .po -> BEAM catalogs.

Optional Cowboy middleware that negotiates the request locale and sets it before the handler runs — turnkey per-request localization.

Optional Elli middleware that negotiates the request locale and sets it before the handler runs — the Elli counterpart to erli18n_cowboy.

Optional bridge that lets an erlydtl template translate its {% trans %} / {% blocktrans %} tags through erli18n — full gettext (contexts, CLDR plurals, hot-reloadable persistent_term catalogs, per-request locale) with erlydtl keeping ownership of {{ var }} interpolation and auto-escaping.

Framework-agnostic core for per-request locale negotiation.

Internal effectful runner shared by the optional web adapters.

Pure, total, fail-soft substituter for named %{name} placeholders.

Canonicalization-aware BCP-47 locale negotiation and fallback.

Evaluator and validator for the gettext/CLDR plural rules used by erli18n.

Parser and serializer for the GNU gettext PO/POT format.

persistent_term storage layer for erli18n translation catalogs.

Catalog gen_server: the serialized writer of the translation catalogs.

Root supervisor of the erli18n application tree.

erli18n observability surface: a thin wrapper over the :telemetry library that centralizes the event names and shields call sites from the absence of the optional dependency.