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:
parent
0775814e19
commit
92d7de51d0
1 changed files with 3 additions and 0 deletions
|
@ -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