VerifiedTranslations.Plug (verified_translations v0.1.1)

Copy Markdown View Source

Sets the locale from ?locale=fi, falling back to the session.

plug VerifiedTranslations.Plug

A locale from the query string is stored in the session (when fetched) so LiveViews mounted later can pick it up with VerifiedTranslations.LiveView.

Options

  • :param - query parameter name, default "locale"
  • :session_key - session key, default "locale"