diff --git a/lib/memex_web/router.ex b/lib/memex_web/router.ex index 222bd6b..e92c1b0 100644 --- a/lib/memex_web/router.ex +++ b/lib/memex_web/router.ex @@ -11,7 +11,7 @@ defmodule MemexWeb.Router do plug :protect_from_forgery plug :put_secure_browser_headers plug :fetch_current_user - plug :put_user_locale, default: Application.get_env(:gettext, :default_locale, "en_US") + plug :put_user_locale, default: Application.compile_env(:gettext, :default_locale, "en_US") end defp put_user_locale(%{assigns: %{current_user: %{locale: locale}}} = conn, default: default) do