Automatically view Knowledge Article in Preferred Language

Uttam Sai
Tera Contributor

Hi Team ,

 In Employee service portal the KB articles are appearing in English by default even the user's Preferred Language is other than English. When clicked on the dropdown(shown below) we are able to select the KB Article in Preferred language . Could you please suggest how we can view the KB article directly in user's preferred language instead of selecting it from drop-down.

UttamSai_0-1693214359173.png

 

2 REPLIES 2

Maik Skoddow
Tera Patron
Tera Patron

Hi

in the widget which is responsible for displaying the KB article, you will have to add the following code line withing the server script section:

data.language = gs.getUser().getLanguage();

Maik

Hi  @Maik Skoddow , i have add this to my server script but not working can you provide more info please where to add it in the script and should i add something else in client scritp also ?