---
title: "The locale object (deprecated)"
slug: "the-locale-object--deprecated-"
abstract: "Describes the deprecated locale object"
---
# The locale object (deprecated)

If you have a presence in multiple countries and/or your site supports multiple locales, then locale information must be sent in events data. This information can either be included in the [value object](https://doc.sitecore.com/discover/en/developers/discover-developer-guide/integrate-using-discover-rest-apis/events-data-model/the-event-object-model/the-value-object.html "The value object") (as described here) or in the [page object](https://doc.sitecore.com/discover/en/developers/discover-developer-guide/integrate-using-discover-rest-apis/events-data-model/the-event-object-model/the-page-object.html "The page object").

> [!important]
> This object is deprecated. For current specifications, refer to [the page object](https://doc.sitecore.com/discover/en/developers/discover-developer-guide/integrate-using-discover-rest-apis/events-data-model/the-event-object-model/the-page-object.html "The page object").

The following table lists the attributes in the deprecated `locale` object:

| Name | Type | Description |
| --- | --- | --- |
| `lg` | string | Required.<br><br>A two-character code representing a language.<br><br>Example: `"fr"`(French). |
| `co` | string | Required.<br><br>Two-character code representing a country.<br><br>Example: `"ca"` (Canada). |
| `cy` | string | Optional.<br><br>A three-character code representing a currency.<br><br>Example: `"cad"` (Canadian dollars). |

The following is an example of an event that includes the deprecated `locale` object:

```JSON
{
  "type": "a2c",
  "name": "pdp",
  "value": {
    "products":[{
      "sku": "191258",
    }],
    "locale":{
      "lg": "fr",
      "co": "ca",
      "cy": "cad",
    },
  }
}
```