From 7e2aa49674ad0bdefe121026f12965ce22e5b139 Mon Sep 17 00:00:00 2001 From: carla Date: Thu, 21 Aug 2025 13:40:16 +0200 Subject: [PATCH] docs: added comment --- lib/mv_web/live_user_auth.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mv_web/live_user_auth.ex b/lib/mv_web/live_user_auth.ex index 9b2a1a7..c7b8684 100644 --- a/lib/mv_web/live_user_auth.ex +++ b/lib/mv_web/live_user_auth.ex @@ -37,7 +37,8 @@ defmodule MvWeb.LiveUserAuth do end def on_mount(:live_no_user, _params, session, socket) do - # Set the locale for not logged in user to set the language + # Set the locale for not logged in user to set the language in the Log-In Screen + # otherwise the locale is not taken for the Log-In Screen locale = session["locale"] || "en" Gettext.put_locale(MvWeb.Gettext, locale) {:cont, assign(socket, :locale, locale)}