configure gettext

This commit is contained in:
2022-02-07 19:30:21 -05:00
parent be8d3be4b3
commit 24fa837478
5 changed files with 23 additions and 8 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
# Set locale
Gettext.put_locale(System.get_env("LOCALE") || "en_US")
maybe_ipv6 = if System.get_env("ECTO_IPV6"), do: [:inet6], else: []
database_url =