All email templates are fully localized where translations exist. You can edit the email templates in the Backoffice or in your IDE. By default, Umbraco Plumber's email templates are available in the default language.
Creating an Email TemplateIf you wish to have one or more email templates for different languages, you will need to place all the email templates into the ~/Views/Partials/WorkflowEmails/
folder.
To add templates for other languages:
~/Views/Partials/WorkflowEmails/
folder.For example:
~/Views/Partials/WorkflowEmails/ApprovalRequest.cshtml
~/Views/Partials/WorkflowEmails/ApprovalRequest_da-DK.cshtml
Below is an example of the ApprovalRequest.cshtml
email template from the ~/Views/Partials/WorkflowEmails/
folder:
@model Umbraco.Workflow.Core.Models.Email.HtmlEmailModel // Refer to the documentation for Email templates for a full rundown on the available fields // or (better option), edit the template in Visual Studio where Intellisense will save you <!DOCTYPE html> <html> <head> <!-- will be used as the email subject line --> <title>Workflow: Approval request</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> </head> <body> <div> <h1>Hello @Model.To.Name,</h1> <p>Please review the following page for @Model.Type.ToLower() approval:</p> <ul> <li> <a href="@Model.CurrentTask.BackofficeUrl">@Model.CurrentTask.Node.Name</a> @if (!string.IsNullOrEmpty(Model.CurrentTask.OfflineApprovalUrl)) { <span><a href="@Model.CurrentTask.OfflineApprovalUrl">Offline approval</a> is permitted for this change (no login required).</span> } </li> </ul> </div> </body> </html>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4