View Source Mobilizon.Web.Plugs.SetLocalePlug (Mobilizon v4.1.0-alpha.1)

Plug to set locale for Gettext

Summary

Functions

Determine the best available locale for a given locale ID

Functions

@spec call(Plug.Conn.t(), any()) :: Plug.Conn.t()
Link to this function

determine_best_locale(locale)

View Source
@spec determine_best_locale(String.t()) :: String.t() | nil

Determine the best available locale for a given locale ID

@spec init(any()) :: nil