fix Application.get_env warning

This commit is contained in:
shibao 2022-10-26 22:09:39 -04:00
parent 6e6a4c726e
commit 97a4e90ca0

View File

@ -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