Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
LocaleOptions
Specifies the language of the labels returned.
API Calls
describeSObject(), describeSObjects(), describeDataCategoryGroups(), describeDataCategoryGroupStructures()
Fields
| Element Name | Type | Description |
|---|---|---|
| language | string |
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 field on the CategoryNodeLocalization object. |
Sample Code—Java
1public void localeOptionsExample() {
2 try {
3 connection.setLocaleOptions("en_US");
4 connection.describeSObject("Account");
5 } catch (ConnectionException ce) {
6 ce.printStackTrace();
7 }
8}