WIP feat:translation
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Moritz 2025-07-04 00:48:15 +02:00
parent c251e1dba3
commit 59f18e1fd2
Signed by: moritz
GPG key ID: 1020A035E5DD0824
12 changed files with 1163 additions and 6 deletions

View file

@ -12,7 +12,10 @@ config :mv,
generators: [timestamp_type: :utc_datetime]
# Backpex configuration
config :backpex, :pubsub_server, Mv.PubSub
config :backpex,
pubsub_server: Mv.PubSub,
translator_function: {MvWeb.CoreComponents, :translate_backpex},
error_translator_function: {MvWeb.CoreComponents, :translate_error}
# Configures the endpoint
config :mv, MvWeb.Endpoint,
@ -25,6 +28,10 @@ config :mv, MvWeb.Endpoint,
pubsub_server: Mv.PubSub,
live_view: [signing_salt: "76NHxpwt"]
# Configures translation
config :gettext, :locales, ["en", "de"]
config :gettext, :default_locale, "de"
# Configures the mailer
#
# By default it uses the "Local" adapter which stores the emails