mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-23 00:14:48 +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)
|
|> Enum.filter(&supported_locale?/1)
|
||||||
|> hd()
|
|> hd()
|
||||||
|
|
||||||
|
require Logger
|
||||||
|
Logger.debug("Locale detected is #{locale}")
|
||||||
|
|
||||||
Gettext.put_locale(locale)
|
Gettext.put_locale(locale)
|
||||||
assign(conn, :locale, locale)
|
assign(conn, :locale, locale)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue