$env.userLanguage API
$env.userLanguage API is used to get the language code of the user language (Language specified in user’s Salesforce profile).
$env.userLanguage(callback){

};
Where
callback is a function which will be invoked once above API is successfully executed.
Sample request of $env.userLanguage API is mentioned below:
$env.userLanguage(data => {
console.log(data);
var result = {
status: 'success',
error: '',
error_message: '',
}
$response(result);

}
);
Sample response structure of $env.userLanguage API is mentioned below:
en_us
Where en_us is the user language of technician
Was this helpful?