Add debug logging to locale

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2023-01-27 15:49:40 +01:00
parent 0775814e19
commit 92d7de51d0
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
1 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,9 @@ defmodule Mobilizon.Web.Plugs.SetLocalePlug do
|> Enum.filter(&supported_locale?/1)
|> hd()
require Logger
Logger.debug("Locale detected is #{locale}")
Gettext.put_locale(locale)
assign(conn, :locale, locale)
end