mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-24 04:41:01 +00:00
most email notifications translatable
This commit is contained in:
@@ -63,6 +63,6 @@ class AccessTokenCreatedMail extends Mailable
|
||||
public function build(): self
|
||||
{
|
||||
return $this->view('emails.access-token-created-html')->text('emails.access-token-created-text')
|
||||
->subject('A new access token was created');
|
||||
->subject(trans('email.access_token_created_subject'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,6 +62,6 @@ class AdminTestMail extends Mailable
|
||||
public function build(): self
|
||||
{
|
||||
return $this->view('emails.admin-test-html')->text('emails.admin-test-text')
|
||||
->subject('A test message from your Firefly III installation');
|
||||
->subject(trans('email.admin_test_subject'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,6 +70,6 @@ class ConfirmEmailChangeMail extends Mailable
|
||||
public function build(): self
|
||||
{
|
||||
return $this->view('emails.confirm-email-change-html')->text('emails.confirm-email-change-text')
|
||||
->subject('Your Firefly III email address has changed');
|
||||
->subject(trans('email.email_change_subject'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,6 +67,6 @@ class OAuthTokenCreatedMail extends Mailable
|
||||
public function build(): self
|
||||
{
|
||||
return $this->view('emails.oauth-client-created-html')->text('emails.oauth-client-created-text')
|
||||
->subject('A new OAuth client has been created');
|
||||
->subject(trans('email.oauth_created_subject'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,6 +61,6 @@ class RegisteredUser extends Mailable
|
||||
*/
|
||||
public function build(): self
|
||||
{
|
||||
return $this->view('emails.registered-html')->text('emails.registered-text')->subject('Welcome to Firefly III!');
|
||||
return $this->view('emails.registered-html')->text('emails.registered-text')->subject(trans('email.registered_subject'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,6 +60,6 @@ class RequestedNewPassword extends Mailable
|
||||
*/
|
||||
public function build(): self
|
||||
{
|
||||
return $this->view('emails.password-html')->text('emails.password-text')->subject('Your password reset request');
|
||||
return $this->view('emails.password-html')->text('emails.password-text')->subject(trans('email.reset_pw_subject'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,6 +68,6 @@ class UndoEmailChangeMail extends Mailable
|
||||
public function build(): self
|
||||
{
|
||||
return $this->view('emails.undo-email-change-html')->text('emails.undo-email-change-text')
|
||||
->subject('Your Firefly III email address has changed');
|
||||
->subject(trans('email.email_change_subject'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user