update viewhelpers

This commit is contained in:
2022-02-15 22:41:07 -05:00
parent 2ac379adaf
commit d80b80ea22
10 changed files with 19 additions and 9 deletions

View File

@ -12,6 +12,9 @@ if System.get_env("PHX_SERVER") && System.get_env("RELEASE_NAME") do
config :cannery, CanneryWeb.Endpoint, server: true
end
config :cannery, CanneryWeb.ViewHelpers,
shibao_mode: System.get_env("SHIBAO_MODE") == "true"
# Set locale
Gettext.put_locale(System.get_env("LOCALE") || "en_US")