forked from potsda.mn/mobilizon
Add debug logging to locale
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
0775814e19
commit
92d7de51d0
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue