Custom Language Switch Widget

Aswathy4
Mega Expert

Hi All,

I have added language switch widget into my custom portal home page, and it shows multiple options to select. I need to restrict the dropdown values to have only 3 languages. Can anyone help me on this please?

 

Regards,

Aswathy Muraleedharan 

1 ACCEPTED SOLUTION

Hi Bhavana,

It worked , Thank you.

 

I was trying to clone the OOB language  switch widget to achieve this, and could see that the client script is calling some API.

Anyway, the requirement is to enable the dropdown only for few languages.

 

Regards,

Aswathy Muraleedharan

View solution in original post

8 REPLIES 8

Please mark the response as correct or helpful and close the thread.

Hi Bhavana,

Is this widget working for you after upgrade?

my instance is recently upgraded to paris Patch 5 and i am getting multiple errors.

 

Regards,

Aswathy Muraleedharan

Hello,

We are still on orlando, for us our next upgrade is on march (Quebec version)

What is the error you are getting?

I have got errors like

1.I18nUtils undefined, maybe missing global qualifier- added global refix to the class and it worked.

2.unable to get users language from getLanguage , changed gs.getLanguage to getSession.getLanguage

3. Now am getting error like "Cannot read property "newLanguage" from undefined"