g_lang in servicenow

Nagasri
Tera Expert

In catalog client script, we want to check the language of the user, can we use g_lang, is it a best practice to use or any other way to check the user language in client scripts? 

Please help us here

Thanks in advance.

3 ACCEPTED SOLUTIONS

Ankur Bawiskar
Tera Patron
Tera Patron

@Nagasri 

yes you can use g_lang

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

You should be able to use g_lang. Since you are asking is it best practice etc., I did a very quick search on KB articles from ServiceNow themselves: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0868940

 

So should be good. Whats te concern you have?

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

Thanks for your reply Ankur,

Could you please provide any documentation regarding g_lang. I am unable to find any information on google when I searched for it.

View solution in original post

5 REPLIES 5

Hi Mark Roethof,

This really helps