Better email title + translation

This commit is contained in:
Greg Burri 2025-04-01 23:46:25 +02:00
parent c7b6f58655
commit 9874497469
5 changed files with 18 additions and 3 deletions

View file

@ -152,6 +152,7 @@ pub async fn sign_up_post(
let email = form_data.email.clone();
match email::send_email(
&email,
context.tr.t(Sentence::SignUpEmailTitle),
&context.tr.tp(
Sentence::SignUpFollowEmailLink,
&[Box::new(format!(
@ -481,6 +482,7 @@ pub async fn ask_reset_password_post(
let url = utils::get_url_from_host(&host);
match email::send_email(
&form_data.email,
context.tr.t(Sentence::AskResetEmailTitle),
&context.tr.tp(
Sentence::AskResetFollowEmailLink,
&[Box::new(format!(
@ -793,6 +795,7 @@ pub async fn edit_user_post(
let email = form_data.email.clone();
match email::send_email(
&email,
context.tr.t(Sentence::ProfileFollowEmailTitle),
&context.tr.tp(
Sentence::ProfileFollowEmailLink,
&[Box::new(format!(