Translated variables in email notification

madanm7786
Mega Guru

Hi All,

I am working on translating the variables in email notification.

I found below similar post in community

Variables translated in notifications

but the issue is, variables are not translated into user's language.

Ex: I have group approval with different language users(French, Japan, English, ....)

When i see the notification, variables are getting translated in one specific language, but not translated based on user language.

Can any one please help me on this...

Thanks in Advance,

Maddy

3 REPLIES 3

madanm7786
Mega Guru

Hi All,



My bad, i have fixed the issue and it is working fine now.



Thanks,


Maddy


sg28
Tera Contributor

Hey can you please provide the solution, I am working on the same. thanks.


Hi Sreerupa,



Follow the thread, Variables translated in notifications


And in the mail script "get_all_variables_translated" in above thread, replace,


var lang = 'it'; in line 1 with


var lang = current.user.language



Thanks,


Maddy