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

@ -40,6 +40,9 @@ config :cannery, Cannery.Mailer, adapter: Swoosh.Adapters.Local
# Swoosh API client is needed for adapters other than SMTP.
config :swoosh, :api_client, false
# Gettext
config :gettext, :default_locale, "en_US"
# Configure esbuild (the version is required)
# config :esbuild,
# version: "0.14.0",

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 =