1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-22 16:03:25 +00:00

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

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