PhoenixKitWeb.Live.Modules.Languages (phoenix_kit v2.62.2)

Copy Markdown View Source

Languages settings LiveView for PhoenixKit admin panel.

Provides interface for managing available languages and localization settings.

Languages is core and this page is always reachable; its first card is the site's multi-language switch (toggle_languages), the second the site's primary language and URL policy (set_primary_language, toggle_default_language_no_prefix) — shown with the switch off too, since a single-language site needs its language as well. With the switch off nothing else is shown. Saved configuration is kept, and menus offer no language choices.

Summary

Functions

handle_event(event, params, socket)

Callback implementation for Phoenix.LiveView.handle_event/3.

handle_params(params, uri, socket)

Callback implementation for Phoenix.LiveView.handle_params/3.

mount(params, session, socket)

Callback implementation for Phoenix.LiveView.mount/3.

render(assigns)

Callback implementation for Phoenix.LiveView.render/1.