# LocaleOptions

Specifies the language of the labels returned.

## API Calls

[`describeSObject()`](/docs/platform/api/guide/sforce-api-calls-describesobject.md), [`describeSObjects()`](/docs/platform/api/guide/sforce-api-calls-describesobjects.md), [`describeDataCategoryGroups()`](/docs/platform/api/guide/sforce-api-calls-describedatacategorygroups.md#describedatacategorygroups), [`describeDataCategoryGroupStructures()`](/docs/platform/api/guide/sforce-api-calls-describedatacategorygroupstructures.md#describedatacategorygroupstructures)

## Fields

### `language`

**Type:** string

**Description:** Specifies the language of the labels returned. The value must be a valid user locale (language and country), such as `de_DE` or `en_GB`. For more information on locales, see the [`Language`](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_categorynodelocalization.htm#languagelocalekey_desc) field on the CategoryNodeLocalization object.

## Sample Code—Java

This sample sets the `LocaleOptions` header to the locale of the logged-in user, and then performs a describe on Account.

```codesegment
public void localeOptionsExample() {
  try {
    connection.setLocaleOptions("en_US");
    connection.describeSObject("Account");
  } catch (ConnectionException ce) {
    ce.printStackTrace();
  }
}

```
