From cd53062c01c2ba07a7583c16fbcd60e5c3987a89 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 21 Nov 2023 18:10:54 +0100 Subject: [PATCH] fix: add a final fallback if we have default_language: nil in instance config Signed-off-by: Thomas Citharel --- lib/web/views/error_view.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/web/views/error_view.ex b/lib/web/views/error_view.ex index 6907b6ddb..fa893e478 100644 --- a/lib/web/views/error_view.ex +++ b/lib/web/views/error_view.ex @@ -53,6 +53,8 @@ defmodule Mobilizon.Web.ErrorView do locale = Mobilizon.Config.instance_config() |> Keyword.get(:default_language, "en") + # Just in case + |> Kernel.||("en") Gettext.put_locale(locale)