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
PerPer 

scontrol and user's language setting

I'm writing some sControls where I want the various (error) messages to be displayed in the user's language. However, I haven't been able to find out where I can get the user language settings. Looking at the user object fields there is nothing obvious, so I might have to retrieve the user object to get the information?
Thanks,
Per
DevAngelDevAngel
Hi per,

Yes you will have to call either getUserInfo using the userId that you can get from a merge field or query the user object on the userId. Any errors returned from the API will be in english.