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

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!


You can do it like this :


var GetUserInfoResult=sforce.connection.getUserInfo();


GetUserInfoResult.userLanguage ==> en_US


Thank you very much.

it's very useful.