+ 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