function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
bestjamiebestjamie 

How to get user's language in s-control

In Apex class, we use System.UserInfo.getLanguage() to retrieve user's language.

But it doesn't work in the s-control.

How to get this information in s-control?

Thanks all!

ArtabusArtabus

You can do it like this :

 

var GetUserInfoResult=sforce.connection.getUserInfo();

 

GetUserInfoResult.userLanguage ==> en_US

bestjamiebestjamie

Thank you very much.

it's very useful.