Make Emails translatable via transifex #6025
The transifex translation add in to the email templates. The optional environment variable NOTIFICATIONS_TRANSLATION_PATH added to config.
This commit is contained in:
@@ -355,8 +355,10 @@ func composeMessage(nt NotificationTemplate, locale string, path string, vars ma
|
||||
}
|
||||
|
||||
message, err := executeTemplate(messageraw, vars)
|
||||
if err != nil {
|
||||
return "", "", "", "", err
|
||||
}
|
||||
return subject, subjectraw, message, messageraw, err
|
||||
|
||||
}
|
||||
|
||||
func loadTemplates(nt NotificationTemplate, locale string, path string) (string, string) {
|
||||
|
||||
Reference in New Issue
Block a user