You need to glide the user table and get the information.

var lng = new GlideRecord("sys_user");

if(lng.get('sys_id_of_the_user')){

lng.getValue("preferred_language");

}

Best Regards
Aman Kumar