I was searching around how to get and set the SharePoint UI language for a user (the language of SharePoint when a user is logged in) for a multilanguage project.
John Liu helped me out on the msdn forum:
alert(_spPageContextInfo.currentLanguage);
To set the language for a user (make sure you have the required language packs installed) – via Mike Smith:
<button onclick="OnSelectionChange(1036)"> French </button> <button onclick="OnSelectionChange(1033)"> English </button>
One thought on “Get / Set the SharePoint UI language code via jQuery / Javascript”