SP.Web.language property (sp.js)

Gets a value that specifies the LCID for the language that is used on the site.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.Web.get_language ()

Return value

Type: int

A 32-bit unsigned integer that indicates the LCID for the language. For a list of LCIDs, see the SP.Language.lcid property.

REST resource endpoint

See Web resource for more information.

Endpoint URI structure


HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/language

GET syntax

GET http://<sitecollection>/<site>/_api/web/language