New answers tagged

0

You can use JavaScript, there's an object available for you called: _spPageContextInfo, and then you can access currentLanguage, like: _spPageContextInfo.currentLanguage It will give you the language ID, in English it's 1033. You have to know ID for each language you want and that's it.


0

There are many ways to retrieve site's language. Using javascript: //Current Language console.log(_spPageContextInfo.currentCultureName); console.log(_spPageContextInfo.currentLanguage); console.log(_spPageContextInfo.webLanguage); console.log(SP.Res.lcid); var currentLocale = "<%= SPContext.Current.Web.Language %>"; var globalLocale = "<%= ...


0

You can try below code: SPContext.Current.RegionalSettings.LocaleId - Gets the regional settings object of the current HTTP context in Microsoft SharePoint Foundation. Also you could load language from current web SPContext.Current.Web.Language - Gets the locale identifier (LCID) for the default language of the website. Reference: ...



Top 50 recent answers are included