Added formatLang when rendering email template #5736