How to translate small piece of content within email template body
Hi everyone,
I'm rendering dynamic content using JavaScript and it is in English for one email delivery. I want to use same JavaScript for content that should be in another language.
For example, I'm displaying month name dynamically in email subject as well as email body in English. I want to display the same in French. I'm newbie with ACM. Can anyone help me how I can do that?
I'm using following snippet for email subject for EN -
<%= formatDate(new Date(), "%Bl") %>
And following snippet for email body for EN -
<%
function daysInMonth(today) {
return new Date(today.getFullYear(), today.getMonth()+1, 0).getDate();
}
var today = new Date();
%>
<%= daysInMonth(today) %> <%= formatDate (today, "%Bl") %>, <%= formatDate (today, "%4Y") %>
I want to display the month's name in French in subject as well as email body.
English and French email deliveries are independent so no condition is required.