"тнιѕ вℓσg ¢συℓ∂ ѕανє уσυя мσηєу ιƒ тιмє = мσηєу" - ∂.мαηנαℓу

Tuesday 15 March 2011

How to retrieve current Locale ID of the User /Organization in CRM 2011 using Javascript / How to retrieve current Language Code / LCID of the User in CRM 2011 using Javascript

In MS Dynamics CRM 2011, Locale ID represents the current Language Pack of the User. It would be the preferred language of the current User.
For Instance, LCID of Italian Language is 1040
LCID of Japanese Language is 1041
Current LCID of the user could be retrieved using Javascript with the following code snippet.
var userlcid= Xrm.Page.context. getUserLcid();


Also LCID of the base language for the current Organization could be retrieved using the following code snippet.

var orglcid= Xrm.Page.context. getOrgLcid();

No comments:

Post a Comment