diff --git a/config/config.exs b/config/config.exs index 9f125f79e..1830afcd9 100644 --- a/config/config.exs +++ b/config/config.exs @@ -179,6 +179,8 @@ config :phoenix, :filter_parameters, ["password", "token"] config :absinthe, schema: Mobilizon.GraphQL.Schema config :absinthe, Absinthe.Logger, filter_variables: ["token", "password", "secret"] +config :mobilizon, Mobilizon.Web.Gettext, one_module_per_locale: true + config :ex_cldr, default_locale: "en", default_backend: Mobilizon.Cldr diff --git a/config/dev.exs b/config/dev.exs index 660e6dd58..291bdc463 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -58,6 +58,8 @@ config :logger, :console, format: "[$level] $message\n", level: :debug config :mobilizon, Mobilizon.Service.Geospatial, service: Mobilizon.Service.Geospatial.Nominatim +config :mobilizon, Mobilizon.Web.Gettext, allowed_locales: ["fr", "en"] + # Set a higher stacktrace during development. Avoid configuring such # in production as building large stacktraces may be expensive. config :phoenix, :stacktrace_depth, 20 diff --git a/config/test.exs b/config/test.exs index 4f024d17c..788b683f6 100644 --- a/config/test.exs +++ b/config/test.exs @@ -77,6 +77,8 @@ config :mobilizon, Mobilizon.Web.Auth.Guardian, secret_key: "some secret" config :mobilizon, :activitypub, sign_object_fetches: false +config :mobilizon, Mobilizon.Web.Gettext, allowed_locales: ["fr", "en"] + config :junit_formatter, report_dir: "." if System.get_env("DOCKER", "false") == "false" && File.exists?("./config/test.secret.exs") do