diff --git a/.doctor.exs b/.doctor.exs new file mode 100644 index 000000000..bbbcb1585 --- /dev/null +++ b/.doctor.exs @@ -0,0 +1,15 @@ +%Doctor.Config{ + exception_moduledoc_required: true, + failed: false, + ignore_modules: [Mobilizon.Web, Mobilizon.GraphQL.Schema, Mobilizon.Service.Activity.Renderer, Mobilizon.Service.Workers.Helper], + ignore_paths: [], + min_module_doc_coverage: 100, + min_module_spec_coverage: 50, + min_overall_doc_coverage: 100, + min_overall_spec_coverage: 90, + moduledoc_required: true, + raise: false, + reporter: Doctor.Reporters.Full, + struct_type_spec_required: true, + umbrella: false +} diff --git a/config/config.exs b/config/config.exs index 9f125f79e..92d02872f 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 @@ -189,7 +191,8 @@ config :http_signatures, config :mobilizon, :cldr, locales: [ "fr", - "en" + "en", + "ru" ] config :mobilizon, :activitypub, 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..86dce9eb7 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", "es", "ru"] + config :junit_formatter, report_dir: "." if System.get_env("DOCKER", "false") == "false" && File.exists?("./config/test.secret.exs") do diff --git a/js/src/components/Event/TagInput.vue b/js/src/components/Event/TagInput.vue index 6537e50b8..e866819ba 100644 --- a/js/src/components/Event/TagInput.vue +++ b/js/src/components/Event/TagInput.vue @@ -29,19 +29,28 @@