Session language is not working in email script

Souvick6917
Tera Contributor

Hello All, 

I am experiencing an unwanted issue. I have a multi lingual condition on notification and email script written on the body of the email.

I have two languages French and English.

Whenever we are changing our preference language to French and triggering the notification, it is by passing the French logic and sending the English notification. Earlier it was all working good. I tried to check with logs and even the logs are bypassing the French logic.

 

Currently we upgrade our instance to Xanadu but the same issue is experienced on other instances which are not upgraded.

 

Can any one help to debug this issue.

 

For reference, we are using below code on the email script :

if (gs.getSession().getLanguage() == "fr") {
content of the notification ------ >>>> bypassing this condition even the session language is "fr"
}else {
content of the email
}
 
5 REPLIES 5

Hi Tejas

Thank you for your efforts.So, it's been a known issue for Xanadu upgrade.I will try to replace my code with get preference.

 

 

Regards 

Souvick