Skip to content

Commit

Permalink
add de mails
Browse files Browse the repository at this point in the history
  • Loading branch information
loeffel-io committed Feb 4, 2022
1 parent 658d860 commit 0d70976
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mail_email_verification.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ func (makeless *Makeless) mailEmailVerification(data map[string]interface{}, loc
"instruction": "To complete your registration, we just need to verify your email address:",
"button": "Verify email address",
},
"de": {
"subject": "Bitte verifiziere deine Email Adresse",
"instruction": "Bitte verifziere deine Email Adresse, um deine Registrierung abzuschließen:",
"button": "Email Adresse verifizieren",
},
}

config := hermes.Hermes{
Expand Down
5 changes: 5 additions & 0 deletions mail_password_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ func (makeless *Makeless) mailPasswordRequest(data map[string]interface{}, local
"instruction": "to reset your password, please click here:",
"button": "Reset password",
},
"de": {
"subject": "Passwort zurücksetzen",
"instruction": "Bitte hier klicken, um dein Passwort zurückzusetzen:",
"button": "Passwort zurücksetzen",
},
}

config := hermes.Hermes{
Expand Down
18 changes: 18 additions & 0 deletions mail_team.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,24 @@ func (makeless *Makeless) mailTeamInvitation(data map[string]interface{}, locale
"instruction": "You can accept or decline this invitation. This invitation will expire in 7 days.",
"button": "View invitation",
},
"de": {
"subject": fmt.Sprintf(
"%s hat dich zu %s eingeladen.",
*user.GetName(),
teamName,
),
"intro": fmt.Sprintf(
"%s hat dich zu %s eingeladen.",
*user.GetName(),
teamName,
),
"outro": fmt.Sprintf(
"Hinweis: Diese Einladung ist für %s vorgesehen. Bitte ignoriere diese Email, falls du keine Einladung erwartest.",
*teamInvitation.GetEmail(),
),
"instruction": "Du kannst die Einladung annehmen oder ablehnen. Die Einladung ist 7 Tage lang gültig.",
"button": "Einladung ansehen",
},
}

switch userInvited.GetName() {
Expand Down

0 comments on commit 0d70976

Please sign in to comment.