- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 10:47 PM - edited 07-31-2023 10:47 PM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 10:50 PM
yes you can use g_lang
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 10:50 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 11:38 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 10:50 PM
yes you can use g_lang
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 11:38 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 11:46 PM
See the reply I gave.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 10:50 PM
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