localeInfo resource type

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported.

Information about the locale, including the preferred language and country/region, of the signed-in user.

Properties

Property Type Description
locale string A locale representation for the user, which includes the user's preferred language and country/region. For example, "en-us". The language component follows 2-letter codes as defined in ISO 639-1, and the country component follows 2-letter codes as defined in ISO 3166-1 alpha-2.
displayName string A name representing the user's locale in natural language, for example, "English (United States)".

JSON representation

Here is a JSON representation of the resource.

{
  "locale": "string",
  "displayName": "string"
}