Language Selector in Portal Header Menu

Vedhavrath_Kond
Tera Guru

This article contains my recent findings on Language Selector Widget. This is a common use case where the user would like to translate the Portal language. Though the end-user language can be defined in User Profile, at times a user might feel comfortable in another language. Though we got a widget “Language Switch” which can be added to the Portals, a common use case is to add the widget to the Portal Header.  OOTB we got a widget “Language selector” widget that displays a list of languages from which the user can choose.

 

The widget on the portal shows the current language selection of the user. If region grouping is enabled, languages are displayed according to the configured region groups.

 

Please follow the below steps to add Language Selector Widget to the Portal header:

 

Step 1: Install the languages required and mark them active in the Languages (sys_language) table.

 

Step 2:  Find the property glide.sp.portals.language_selector_enabled You will then need to enter in the sys_id of the portal in question (it's a comma-separated list if you want to add more than one).

 

Here I have added sys_id of the Service Portal (sp) and you can see the widget in the Portal Header.

 

VedhavrathKon2_1-1673802210201.png

 

VedhavrathKon2_2-1673802210207.png

 

Similarly, you can add a comma-separated list of sys_id’s if you want to add more than one.

 

In addition to this, you can define how granular you would like the selection to be by mapping languages against regions. This can be defined in the "System Localization" application.  

 

You will now see the following modules:

VedhavrathKon2_3-1673802210208.png

 

These tables essentially allow you to create data as per your needs.

 

Once you have defined the regions and language mapping the selection will look something like this:

 

VedhavrathKon2_4-1673802210211.png

 

If you found this post useful, please like share, and subscribe.

 

4 REPLIES 4

SAI SRIKANTH AL
Tera Contributor

Good one, thanks for sharing! 

Alex Coope - SN
ServiceNow Employee
ServiceNow Employee

@Vedhavrath_Kond,

If you want to add it to the /esc portal, I've posted about it on my blog a few months ago in our dedicated i18n forum,

Many thanks,
Kind regards

--------------------------------------------------------------------
Director of Globalization Deployment, Internationalization

@Alex Coope - SN 

 

That's a brilliant piece of work...

AbdulNow
Tera Guru

Great!! This is just Wow. Thanks for sharing!