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
dipudipu 

Detect user's language

Is there a way to detect user's language in Apex code without making an SOQL query?

Best Answer chosen by Admin (Salesforce Developers) 
Ankit AroraAnkit Arora

here is the code :

 

System.debug(' ::::: ' + UserInfo.getLanguage()) ;

 It will provide you the code, you can match the code using this :

 

https://login.salesforce.com/help/doc/en/faq_getstart_what_languages_does.htm

 

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page