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:
Roman Perekhod
2023-04-16 14:02:40 +02:00
parent c0be639f80
commit cd59424a16
23 changed files with 382 additions and 79 deletions
+3 -1
View File
@@ -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) {