Save user locale and use it to translate things
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -46,7 +46,7 @@ defmodule MobilizonWeb.Email.Participation do
|
||||
%Participant{event: event, role: :rejected},
|
||||
locale
|
||||
) do
|
||||
Gettext.put_locale(locale)
|
||||
MobilizonWeb.Gettext.put_locale(locale)
|
||||
|
||||
subject =
|
||||
gettext(
|
||||
@@ -67,7 +67,7 @@ defmodule MobilizonWeb.Email.Participation do
|
||||
%Participant{event: event, role: :participant},
|
||||
locale
|
||||
) do
|
||||
Gettext.put_locale(locale)
|
||||
MobilizonWeb.Gettext.put_locale(locale)
|
||||
|
||||
subject =
|
||||
gettext(
|
||||
|
||||
Reference in New Issue
Block a user