Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note of the possibility to localize PasswordReset notifications #4239

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions passwords.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,13 @@ You may easily modify the notification class used to send the password reset lin
$this->notify(new ResetPasswordNotification($token));
}

If you want to localize the default notification you can simply add your translation strings to a [JSON file](/docs/{{version}}/localization#using-translation-strings-as-keys). A German localization would go into `resources/lang/de.json` and could look like this:

{
"Hello!": "Hallo!",
"Regards": "Grüße",
"If you’re having trouble clicking the \":actionText\" button, copy and paste the URL below into your web browser: [:actionURL](:actionURL)": "Wenn du Probleme mit dem \":actionText\"-Button hast kopiere einfach diese Adresse in deinen Browser: [:actionURL](:actionURL)",
"You are receiving this email because we received a password reset request for your account.": "Du erhälst diese E-Mail weil bei uns eine Anfrage für die Rücksetzung deines Passworts eingegangen ist.",
"Reset Password": "Passwort zurücksetzen",
"If you did not request a password reset, no further action is required.": "Sollte die Anfrage nicht von dir stammen kannst du diese Mail ignorieren.",
}