WraithWeb. Locale
(Wraith v0.1.0)
View Source
The public site speaks the site's language.
Settings.get()["lang"] (an IETF tag such as en, de, pt-BR) picks the
Gettext locale for every public request — the plug for the dead render and
controllers, the on_mount hook for the LiveView process. Unknown or
untranslated languages fall back to English, which is also the source
language of every string, so a missing translation is never an empty page.
Translations live in priv/gettext/<locale>/LC_MESSAGES/default.po.
Summary
Functions
The Gettext locale for the site's lang, or en.