- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2024 09:54 PM - edited ‎08-06-2024 10:03 PM
I am trying to enable Language Selector in Service portal main menu. As per the documentation, I am able to enable the property (glide.sp.portals.language_selector_enabled). and copy the sys_id's of portals to the value. But cannot see the lang selector on the the portal header widget. Am I missing anything? Would really appreciate help on this.
PS: I am using Portal Polaris Header in the theme.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2024 09:43 AM
I was able to fix this. I don't have any language plugin other than English installed in my instance. As English is default, the language selector was not showing up. After installing couple of other language plugins, I am able to see the Language selector.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2024 11:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2024 09:27 AM
Hi, I am not familiar with the Portal Polaris Header widget but I believe this could be the issue. Try switching to the Stock Header to confirm the language selector displays as expected. If it does, you can update the Portal Polaris Header widget to display the language selector.
To add the language selector to a header widget, enter the below code into the Body HTML template:
<!-- Language Selector Menu -->
<sp-widget widget="::data.langSelector"></sp-widget>
Then enter the below code into the Server script:
data.langSelector = pm.isActive('com.glide.i18n')? $sp.getWidget('sp-lang-selector') : "";
You can view this code in the Stock header widget.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2024 09:43 AM
I was able to fix this. I don't have any language plugin other than English installed in my instance. As English is default, the language selector was not showing up. After installing couple of other language plugins, I am able to see the Language selector.