forked from potsda.mn/mobilizon
fix: add a final fallback if we have default_language: nil in instance config
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
262d1fcd4d
commit
cd53062c01
|
@ -53,6 +53,8 @@ defmodule Mobilizon.Web.ErrorView do
|
||||||
locale =
|
locale =
|
||||||
Mobilizon.Config.instance_config()
|
Mobilizon.Config.instance_config()
|
||||||
|> Keyword.get(:default_language, "en")
|
|> Keyword.get(:default_language, "en")
|
||||||
|
# Just in case
|
||||||
|
|> Kernel.||("en")
|
||||||
|
|
||||||
Gettext.put_locale(locale)
|
Gettext.put_locale(locale)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue